SyntaxError: Non-ASCII character ‘xe6‘ in file test1.py on line 1, but no encoding declared; see ht

    技术2022-07-15  43

    Python在默认状态下不支持源文件中的编码所致。解决方案如下:

    在文件头部添加如下注释码:

    coding= 例如,可添加# coding=utf-8

    Processed: 0.012, SQL: 9