qwerty 发表于 2020-7-4 21:31:38

期末考试

password='ab321'
a = 0
while a != 1:
   userpowd = input(请输入密码 :')
   if userpwd == password:
      print('密码正确欢迎你!')
      a = 1      
   else :
      print('密码错误,不能进入 !')
页: [1]
查看完整版本: 期末考试