码迷,mamicode.com
首页 > 其他好文 > 详细

登陆接口

时间:2017-09-08 00:23:22      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:count   passwd   pre   bre   continue   tin   int   word   ror   

count=0
while count < 3:
user=input(‘please input username >>‘)
password=input(‘please input passwd >>‘)
if user == ‘yangguang‘ and password == ‘sunshine‘:
print (‘welcome‘)
break
else:
print (‘error user or passwd‘)
count+=1
continue

登陆接口

标签:count   passwd   pre   bre   continue   tin   int   word   ror   

原文地址:http://www.cnblogs.com/sunnybible/p/7492414.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!