99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2020-10-15 閱讀量: 939
Python報(bào)expected an indented block的錯(cuò)

問題:Python報(bào)expected an indented block的錯(cuò)怎么解決?


答:

Python語言是一款對(duì)縮進(jìn)非常敏感的語言,最常見的情況是tab和空格的混用會(huì)導(dǎo)致錯(cuò)誤,或者縮進(jìn)不對(duì)。

s = 200
if s >=0:
print s



 expected an indented block


在編譯時(shí)會(huì)出現(xiàn)這樣的錯(cuò)IndentationError:expected an indented block說明此處需要縮進(jìn),你只要在出現(xiàn)錯(cuò)誤的那一行,按空格或Tab(但不能混用)鍵縮進(jìn)就行。


51.8624
0
關(guān)注作者
收藏
評(píng)論(0)

發(fā)表評(píng)論

暫無數(shù)據(jù)
推薦帖子