陈奕贝 发表于 2020-7-2 21:18:04

用while语句进行密码判断的代码

password='ab321'
userpwd=" "

while password!=userpwd :
   userpwd==input(‘请输入密码:’)

print('密码正确,欢迎你!‘)

页: [1]
查看完整版本: 用while语句进行密码判断的代码