不知道为什么,本机测试必须要在debug模式下才正常运行。。

import getpass                                  #用于隐藏用户输入的字符串,常用来接收密码

def checkuser(user,passwd):
if user == 'chenhang' and passwd == '':
return True
else:
return False if __name__ == "__main__":
userr = input('Input the user:')
passwdd = getpass.getpass('Input the passwd:') if checkuser(userr,passwdd):
print('OK!')
else:
print('ERROR!')

最新文章

  1. iOS 数字字符串的直接运算 + - * /
  2. jquery效果- 显示和隐藏 淡入淡出 滑动 隐藏
  3. html/css 两个div在同一行
  4. js html5 仿微信摇一摇
  5. CATransform3D参数的意义
  6. POJ 1279 Art Gallery 半平面交求多边形核
  7. 使用delimiter //,解决mysql end报错问题
  8. 23)django-缓存
  9. oc字符串与c字符串转换和拷贝
  10. Maven入门详情
  11. 从 Azure 下载 Windows VHD
  12. vue 文本比较插件
  13. Android Studio - No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
  14. 视音频数据处理入门:UDP-RTP协议解析
  15. oracle 存储过程循环体中的return和exit区别:
  16. 演示-JQuery中伪元素和伪类选择器
  17. 使用Dreamweaver开发php
  18. SharePoint 2013 - Host-named Site Collection
  19. JSON初体验(三):FastJson解析
  20. .net EF框架

热门文章

  1. Dividing (多重背包 搜索)
  2. POJ 1861 Network
  3. Docker网络模式
  4. @protocol 和 category 中如何使用 @property
  5. Servlet的一些细节(2)
  6. Node.js学习(7)----包
  7. Unity3d个人信息开发流程
  8. sql服务器内部参数使用详情(存储过程)
  9. MySQL用命令行复制表的方法
  10. zookeeper选举代码分析