只要我完成它,我的程序就會出現一些問題。我真的沒有看到太多的錯誤,但我得到一個錯誤,說「while」是一個語法錯誤。python可能的縮進錯誤?不知道出了什麼問題?
pass1 = raw_input("Please enter a password(Must contain a number,at least 1 capital
letter and must be longer that 6 characters): ")
time.sleep(1)
pass2 = raw_input("Please re-enter your password: ")
updown = any(map(str(isupper, pass1))
while not pass1 or not pass1 == pass2 or not num_there(pass1) == True or len(pass1) < 6:
if updown == False:
print "\n Your password is not accepted!"
pass1 = raw_input("Please enter a password(Must contain a number,at least 1 capital letter and must be longer that 6 characters): ")
time.sleep(1)
pass2 = raw_input("Please re-enter your password: ")
else:
continue
else:
print "Password accepted!"
f.write(pass1)
'while'前的行上沒有足夠的關閉零部件。 – 2014-10-29 22:21:31
更改'任何(地圖(str(isupper,pass1))''任何(地圖(str(isupper,pass1)))' – inspectorG4dget 2014-10-29 22:22:08