摘要:
2种方法: 1.open文件设置encoding file = open(filename, 'r', encoding='UTF-8') 2.用encode方法 str = str.encode() 参考:https://www.fujieace.com/python/str-bytes.html
阅读全文
posted @ 2020-07-04 22:55
西伯尔
阅读(766)
推荐(0)
编辑
摘要:
参考:https://blog.csdn.net/zhang__shuang_/article/details/82527314
阅读全文
posted @ 2020-07-04 22:43
西伯尔
阅读(592)
推荐(0)
编辑