2017年1月21日

摘要: 举个例子,如果一个公司要存员工的信息,应该怎么去存,怎么去取?列表可以吗? info=[["alex",22,"teacher",3000], ["oldboy",56,"teacher",4000,13022452346...],... ]如果按照这么存,那么取得时候肯定按照索引去取 info.i 阅读全文

posted @ 2017-01-21 09:10 Anyway2017 阅读(227) 评论(0) 推荐(0) 编辑

摘要: menu = { '北京':{ '海淀':{ '五道口':{ 'soho':{}, '网易':{}, '谷歌':{} }, '中关村':{ '爱奇艺':{}, '汽车之家':{}, 'youku':{}, }, '上地':{ '百度':{}, '联想':{}, 'H3C':{}, }, }, '昌平 阅读全文

posted @ 2017-01-21 08:52 Anyway2017 阅读(180) 评论(0) 推荐(0) 编辑

摘要: #!/usr/bin/env python #_*_conding:utf-8_*_ import sys,os old_file = sys.argv[1] new_file = sys.argv[2] file_path = sys.argv[3] f = open(file_path,"r") 阅读全文

posted @ 2017-01-21 08:50 Anyway2017 阅读(156) 评论(0) 推荐(0) 编辑

摘要: PRODUCT_LIST = [ ['iphone7',6500], ['macbook',12000], ['pythonbook',66], ['bike',999], ['coffee',31]]SHOPPING_CAR=[]while True: salary = input("salary 阅读全文

posted @ 2017-01-21 08:48 Anyway2017 阅读(144) 评论(0) 推荐(0) 编辑

摘要: user = "gaojun"password ="123abc"for i in range(3): user = input('请输入用户名:') password = input('请输入密码:') if user == "gaojun" and password =="123abc": pr 阅读全文

posted @ 2017-01-21 08:46 Anyway2017 阅读(130) 评论(0) 推荐(0) 编辑


Copyright © 2024 Anyway2017
Powered by .NET 9.0 on Kubernetes