python - 基础算法题 - 用户登录(三次机会)
2020-12-13 06:13
阅读:403
标签:code style int 输入 登录 密码 print ++ nbsp python - 基础算法题 - 用户登录(三次机会) 标签:code style int 输入 登录 密码 print ++ nbsp 原文地址:https://www.cnblogs.com/bigbigbird/p/11170922.html
username = input("输入名字")
userword = int(input("输入密码"))
i=1
while i:
if username = ‘你好‘ and userword = 123:
print("登录成功")
else:
print("登录失败")
i++
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:python - 基础算法题 - 用户登录(三次机会)
文章链接:http://soscw.com/index.php/essay/32725.html
文章标题:python - 基础算法题 - 用户登录(三次机会)
文章链接:http://soscw.com/index.php/essay/32725.html
评论
亲,登录后才可以留言!