摘要: #python中不存在单个字符的运算,只有字符串函数 >>> s="www.google.com" >>> s 'www.google.com' >>> s.split('.') #无参数全部切割 ['www', 'google', 'com'] >>> s.split('.',1) #分隔一次 [ 阅读全文
posted @ 2018-01-30 22:44 ankuo 阅读(139) 评论(0) 推荐(0) 编辑