首页 > 其他 > 详细

用户交互

时间:2017-07-16 23:16:42      阅读:251      评论:0      收藏:0      [点我收藏+]
#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Andy Chen

_username = ‘alex‘
_password = ‘abc123‘
username = raw_input("username:")
#password = getpass.getpass("password:")
password = raw_input("password:")

if _username == username and _password == password:
print"你成功登陆"
else:
print"你输入的用户无效"

用户交互

原文:http://www.cnblogs.com/andychen520/p/7192184.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!