2017年3月24日
摘要: 编写登陆接口 输入用户名密码 认证成功后显示欢迎信息 输错三次后锁定 #!/usr/bin/env python #-*- encoding:utf8 -*- import getpass import os name = "wangxu" pwd = "www" count = 0 user_st 阅读全文
posted @ 2017-03-24 16:45 光阴8023 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 猜年龄游戏 在程序里设定好你的年龄,然后启动程序让用户猜测,用户输入后,根据他的输入提示用户输入的是否正确,如果错误,提示是猜大了还是小了。三次退出。 C:\Python36\python.exe C:/Users/7KM/PycharmProjects/s18/day2/test.py 猜年龄 请 阅读全文
posted @ 2017-03-24 13:51 光阴8023 阅读(2941) 评论(0) 推荐(0) 编辑
摘要: # 提示输入用户名和密码 # 验证用户名和密码 # 如果错误,则输出用户名或密码错误 # 如果成功,则输出 欢迎,XXX! 阅读全文
posted @ 2017-03-24 13:49 光阴8023 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Python数据运算 http://www.runoob.com/python/python-operators.html http://www.cnblogs.com/alex3714/articles/5465198.html 算数运算: 比较运算: 赋值运算: 逻辑运算: 成员运算: 身份运算 阅读全文
posted @ 2017-03-24 10:30 光阴8023 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Python 表达式 死循环and跳出 While true C:\Python36\python.exe C:/Users/7KM/PycharmProjects/s18/s18/day1/namber.py input your guess number: 12 the real number 阅读全文
posted @ 2017-03-24 09:48 光阴8023 阅读(293) 评论(0) 推荐(0) 编辑