微信扫一扫
# 字符串s = "刘备 关羽 张飞"# 分割li = s.split()# 输出print(li)# 小结print("split方法不传参,默认会按空符号来分割,例如 空格 换行符等")
相关推荐