摘要:
spilt()分割和join()合并 spilt()可以基于指定分割符将字符串分割成多个子字符串(存储到列表之中),如果不指定分隔符,则默认使用空白分隔符(换行符、空白,制表符) 1 a = "to be or not to be" 2 a = a.spilt() 3 print(a) 4 ['to 阅读全文
posted @ 2020-09-05 23:09
Xujie_0528
阅读(350)
评论(0)
推荐(0)