摘要: __author__ = '6005001645' #三元运算符 :判定条件?为真时的结果:为假时的结果 x=20 y=30 z=x if x<20 else y print(z) # result=[i for i in range(1,2) if i%2==0] # print(result) # #读模式 # file=open("information.txt","r") # conte... 阅读全文
posted @ 2018-07-17 08:08 三海寻礼 阅读(87) 评论(0) 推荐(0) 编辑
摘要: __author__ = 'WuJingyu' import sys goods = [ {"name": "苹果电脑", "price": 9999}, {"name": "iphoneX", "price": 5000}, {"name": "iWatch", "price": 1000}, {"name": "LV手提包", "price&quo 阅读全文
posted @ 2018-07-17 08:07 三海寻礼 阅读(96) 评论(0) 推荐(0) 编辑