摘要: 1.分割字符串 str.split(sep,maxsplit) #(分隔符,分几次) 2.合并字符串 str2=string.join(iterable) #str2='@'.join(list1) #list1是一个列表 3.检索字符串 count() find() startwith() end 阅读全文
posted @ 2019-10-04 16:22 xdd1997 阅读(206) 评论(0) 推荐(0)