好吧,對於像我這樣沒有經驗的人來說,這可能是你們最討厭的問題。但是裸露在一起,我很抱歉。Python錯誤 - 縮進
我運行卡利Linux和需要拉斷命令的負載,但我正在一個腳本來真正速度爲我說話。這裏是.py文件:
import os
if raw_input("Begin fake Access Point? (y/n): ")=="y":
os.system(airmon-ng)
interface = input("Enter your Interface name: ")
os.system(airmon-ng "interface" start)
試圖運行它時,我得到這個錯誤:
File "WNS.py", line 7
os.system(airmon-ng "interface" start)
^
IndentationError: unexpected indent
試圖刪除在一開始的空白,但那時我剛得到這個錯誤:
IndentationError: expected an indented block
你有一個空間在該行的乞討,你需要排隊與上面的線。 – Will
是的,我這樣做,然後我得到這個錯誤:「IndentationError:預期一個縮進塊」 – iZodiac
但只能刪除它之前的第二個,而不是第一個,因爲這是一個是在「if」塊(即完全由錯誤信息)。 – agold