Python ASCII E码

2024-04-28 23:42:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我的Python编程遇到了问题,它给了我这个错误:

Non-ASCII character '\xc2' in file /home/meyer/Documents/Money/money_counter.py on line 29, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

The forum that it took me to也没用。你知道吗

#Cent Parts
hundred_cent = (raw_input("How many 100¢ do you have?:\n"))
hundred_centone = hundred_cent * 1.00
#======================================================================

Tags: inhome编程错误asciidocumentscentfile