SyntaxError: Non-ASCII character '\xef' in file hello.py on line 6, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

原因:

python 组合字符串时不要用 a+b ,
 
 
应该是 print "Game over. Your secret number was:%s" % (p,)
posted @ 2021-07-31 14:52  快乐之光  阅读(107)  评论(0)    收藏  举报