首页 > 代码库 > python3, day1,登录接口
python3, day1,登录接口
#!/usr/bin/env python # 登录接口 # Author: Msl23 _username = ‘Msl23‘ _password = ‘123.com‘ count = 0 while count < 3: username = input(‘Username: ‘) password = input(‘Password: ‘) if username == _username and password == _password: print(‘Welcome,User:%s‘ %(_username),‘Loging!‘) break else: print(‘Error: Username Or Password..‘) count = count + 1 else: print(‘Input the number three times..‘)
没有学调用文件这些,所以只能用已知知识来做一个简单的了!
python3, day1,登录接口
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。