出现错误解决办法
错误:Non-ASCII character '\xe6' in file test.py on
解决:文本第一行添加 # encoding: utf-8
标准文件,防止被导入后执行除函数外的表达式
def main():
# Todo: Add your code here
pass
if __name__ == '__main__':
main()
错误:Non-ASCII character '\xe6' in file test.py on
解决:文本第一行添加 # encoding: utf-8
def main():
# Todo: Add your code here
pass
if __name__ == '__main__':
main()
本文标题:2019-08-13
本文链接:https://www.haomeiwen.com/subject/dkrvjctx.html
网友评论