云遠

导航

 

2018年6月19日

摘要: python string与list互转 因为python的read和write方法的操作对象都是string。而操作二进制的时候会把string转换成list进行解析,解析后重新写入文件的时候,还得转换成string import string str = 'abcde' list = list( 阅读全文
posted @ 2018-06-19 21:02 云遠 阅读(121) 评论(0) 推荐(0) 编辑