Python2.7:for循环上的“无效语法”无缘无故出错

2024-04-26 23:26:11 发布

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

我在试着做一个棋盘,但是当涉及到黑色方块时,我发现了以下错误:

      File "C:\Users\Pedro\Dropbox\Aplicativos\NONIOInforestudante\Licenciatura em BioquÝmica\2015 2016\2.║ Semestre\Computadores e ProgramaþÒo\graph\f10-p1.py", line 17
    yi = margem+((a-1)*(largura/8))
     ^
SyntaxError: invalid syntax
Press any key to continue . . .

代码如下:

^{pr2}$

你能解释一下有什么问题吗?在


Tags: 棋盘错误users方块filedropboxem黑色