我需要创建一个密码重置程序,使用户输入两次新密码,以便计算机知道用户在输入新密码时没有犯任何错误。它应该只接受密码,如果它是八个字符或更少,并且包括小写字母和大写字母。 这里是我到目前为止有:重置密码python程序
import os
import time
def main():
while True:
PassWord = input ("Enter Password: ")
for c in s:
if c.islower():
print c
Password == :
time.sleep(1)
print ("Login successful!")
logged()
else:
print ("Please try again")
def logged():
time.sleep(1)
print ("Welcome to ----")
main()
'密码==:'是不是有效的Python ...; –
's for s in:if c.islower():print c' s是什么? –