摘要: ATM目录 恢复内容结束 阅读全文
posted @ 2017-10-24 23:51 麦芒lin 阅读(283) 评论(0) 推荐(0) 编辑
摘要: json.loads 用于解码 JSON 数据。该函数返回 Python 字段的数据类型。 5、字典的循环遍历 6、python的read(),readline()和readlines() 关于read()方法: 1、读取整个文件,将文件内容放到一个字符串变量中 2、如果文件大于可用内存,不可能使用 阅读全文
posted @ 2017-10-18 01:29 麦芒lin 阅读(149) 评论(0) 推荐(0) 编辑
摘要: import jsonimport osimport datetimeinfo = '''*************欢迎光临***************** ** 1.按"A"或"a"注册 ** 2.按"L"或"l"登陆 * * 3.按"Q"或"q"退出 * ******************* 阅读全文
posted @ 2017-07-04 10:19 麦芒lin 阅读(128) 评论(0) 推荐(0) 编辑
摘要: menu={ 'shandong':{ 'qingdao':['sifang','haungdao'], 'jinan':['licheng','zhangqiu'] }, 'zhejiang':{ 'hangzhou':['xihu','binjiang'], 'wnzhou':['lucheng 阅读全文
posted @ 2017-07-04 10:16 麦芒lin 阅读(180) 评论(0) 推荐(0) 编辑
摘要: import sys count=0 while count<3: user = input("Please enter user name:") lock_file = open('D:\\lock.txt', 'r+') lock_list = lock_file.readlines() for lock_line in lock_list: ... 阅读全文
posted @ 2017-07-04 10:15 麦芒lin 阅读(268) 评论(0) 推荐(0) 编辑