python实现登录功能模块#!/usr/bin/env python
while True:
user = raw_input('Please input username:')
if user == ('Kate'):
password = raw_input('Please input password:')
python图形界面开发、while True:
if password != ('123'):
print "Wrong password,please try again!"
password = raw_input('Please input password:' )
if password == ('123'):
print "Hello %s,welcome to the system!" % user
python的输入、break
break
else:
print "The username %s has not been found!" % user
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态