📜  如何在python代码示例中进行简单登录

📅  最后修改于: 2022-03-11 14:46:27.482000             🧑  作者: Mango

代码示例1
username = input(' enter your username: ')
if username == 'Put Your Username Here':#change this
   print("checking username")
   time.sleep(0.5)
   print("username is right") 
   password = input(' type your password: ')
   if password == 'Put Your Password Here':#change this
    time.sleep(0.5) 
   else:
    exit()
else:
 exit()