def pp(a):
if a==1024:
print("Passed")
for a in range(0,3,1):
print("------------------------------------------------")
else:
print("Error")
for b in range(0,3,1):
print("------------------------------------------------")
while 1:
i=input("Please input password:")
pp(i)
关于IndentationError:expected an indented block错误解决
注意语句缩进,这个程序是验证密码的,很粗糙。只是为了if,def,else,while这些功能的使用。
