08 2018 档案

摘要:import randomidentifying_code=''for i in range(0,4): current=random.randrange(0,3) if current==i: tmp=chr(random.randint(65,90)) else: tmp=random.rand 阅读全文
posted @ 2018-08-27 16:41 心几绝而不凡 阅读(163) 评论(0) 推荐(0)
摘要:f=open('daa','r',encoding='utf-8')f_new=open('add.bak','w',encoding='utf-8')for line in f: if '《忆秦娥·临高阁》' in line: line=line.replace('《忆秦娥·临高阁》','李清照' 阅读全文
posted @ 2018-08-22 16:25 心几绝而不凡 阅读(186) 评论(0) 推荐(0)
摘要:shopping=[('toy',50), ('clothes',100), ('iphone',5000), ('bike',400), ('hat',20), ('food',100)]buy_shopping=[]salary=int(input('input your salary:'))w 阅读全文
posted @ 2018-08-22 14:12 心几绝而不凡 阅读(142) 评论(0) 推荐(0)