网站介绍:因为如果不加编码方式,在python文档中加中文注释的时候,会有下列报错File "encode.py", line 5SyntaxError: Non-ASCII character '\xe7' in file encode.py on line 1, but no encoding declared; see //..python.../dev/peps/pep-0263/ for ..._coding utf-8 python
- 链接地址:https://blog.csdn.net/qi_choy/article/details/83962051
- 链接标题:为什么python文档要前加 # coding=utf-8_coding utf-8 python-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5244
- 网站标签:coding utf-8 python