摘要: #!/usr/bin/env python#author:leiuser = "zhanglei"passwd = "123456"username = input("\033[31;2musername\033[0m:")password = input("password:")if user = 阅读全文
posted @ 2016-05-12 13:52 Jackie207 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#author:zhanglei#导入模块import getpassExit = ['q','quit']#定义一个空列表lock = []username = input("input username: ").strip()#已只读的方式打开lock黑 阅读全文
posted @ 2016-05-12 13:50 Jackie207 阅读(312) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#author:leiage = 22counter = 0for i in range(10): if counter <3: guess_age = int (input("input guess_age")) if guess_age > age: p 阅读全文
posted @ 2016-05-12 13:50 Jackie207 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python#author:leiimport collectionsBreak = ['b']dic = { '北京': {'海淀区':['中关村','亚运村','清华','北大'], '东城区':['东单','北京站','朝阳门','银河soho']}, '上海': 阅读全文
posted @ 2016-05-12 13:47 Jackie207 阅读(158) 评论(0) 推荐(0) 编辑