这是我的代码:
每次运行时都会出现以下错误:
def options():
selection=int(input("#>"))
if selection == 1:
#Connect
elif selection == 2:
#Modules
print("Modules")
elif selection == 3:
#Checking Internet
checkInternetConnection()
elif selection == 99:
#Exit
shutdown()
else:
print "Unknown Option Selected!"
sleep(100)
sys.clear()
start()
每次运行时都会出现以下错误:
File "main.py", line 41
elif selection == 2:
^
IndentationError: expected an indented block
我可能是个初学者,在这里请求帮助!谢谢
if
语句下没有任何代码。(注释不计算在内。) - kindallpass
作为占位符,而不是注释。 - Phix