摘要: 知识传送门:列表和字符串的相互转换 1. 字符串转列表 s ='hello python !' li = s.split(' ') #可按照符号进行分割,案例中为空格 print (li) 输出: ['hello', 'python', '!'] 2. 列表转字符串 li = ['hello', ' 阅读全文
posted @ 2020-06-03 11:37 ing学习ing 阅读(320) 评论(0) 推荐(0)