摘要: 查看文件编码➜ ~ file a.pya.py: ASCII text编码转换iconv a.py -f ascii -t utf-8 -o b.py --verbose-f,from-coding 源文件编码-t,to-coding 输出文件编码-o 输出文件大... 阅读全文
posted @ 2018-05-17 11:20 妙音 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 错误1:变量加载到内存出现编码错误文件内容a="中国"print a报错➜ ~ python a.py File "a.py", line 1SyntaxError: Non-ASCII character '\xe4' in file b.py on line ... 阅读全文
posted @ 2018-05-17 10:58 妙音 阅读(256) 评论(0) 推荐(0) 编辑