Python split() 方法,分隔符对字符串进行分割并返回一个列表
转:https://www.cnblogs.com/wushuaishuai/p/7687294.html以下实例展示了 split() 方法的使用方法:S = “this is string example….wow!!!” print (S.split( )) print (S.split(‘i’,1)) print (S.split(‘w’))以上实例输出结果如下: ...
转载
2018-07-27 15:54:38 ·
13972 阅读 ·
0 评论