2018-10-24
閱讀量:
831
python 錯誤解析(十八)
代碼如下:
>>> if X>Y:
... X,Y = 3,4
... print X,Y
File "<stdin>", line 3
print X,Y
^
IndentationError: unexpected indent
>>> t = (1,2,3,4)
File "<stdin>", line 1
t = (1,2,3,4)
^
IndentationError: unexpected indent
【錯誤分析】一般出在代碼縮進的問題






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論