我目前正在撰寫一些代碼,沒什么特別的,但后來我在嘗試修復縮進時得到了這個。
File "/data/data/com.termux/files/home/ttc2/main.py", line 67
return await asyncio.gather(*[self._check(sess, u) for u in self.to_check])
^
IndentationError: expected an indented block after 'with' statement on line 66
現在,我很困惑在哪里需要縮進,有人可以幫忙嗎?
uj5u.com熱心網友回復:
請發布代碼,以便我們可以幫助您,任何人
使用 with 后應該做一個縮進
with open(filename,mode) as w:
w.write('hello')
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/412115.html
標籤:
