关于结果非横向显示没有通过的问题,谢谢~
for x in [ 10,20,30,40,50,60,70,80,90 ]: for y in [1,2,3,4,5,6,7,8,9 ]: if 10*y > x : print x + y else: continue #第一开始写的,发现非横向显示,没有pass。。 #听说在print后解析式加上“,”, for x in [10,20,30,40,50,60,70,80,90]: for y in [1,2,3,4,5,6,7,8,9]: if 10*y>x: print x+y, #但是程序报错, File "index.py", line 4 SyntaxError: Non-ASCII character '\xe5' in file index.py on line 4, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details #一脸懵13,请问哪里出错,谢谢~感激不尽。