Non-UTF-8 code starting with '\xc4' in file d:\Python\demo.py on line 2, but no encoding declared; see https://peps.python.org/pep-0263/ for details
换encoding也没用
在开头加上 这个试试
#-*- encoding:utf-8 -*-