摘要: Python列表与字符串相互转换的几种操作 一、字符串转换成列表 1.list()方法 mystr='abcdefg' mylist=list(mystr) print(mylist) 结果: ['a', 'b', 'c', 'd', 'e', 'f', 'g'] 2.split()方法 mystr 阅读全文
posted @ 2019-12-16 10:47 学不会SLAM的 阅读(2048) 评论(0) 推荐(0) 编辑