摘要:
__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... 阅读全文
摘要:
__author__ = 'WuJingyu' import sys goods = [ {"name": "苹果电脑", "price": 9999}, {"name": "iphoneX", "price": 5000}, {"name": "iWatch", "price": 1000}, {"name": "LV手提包", "price&quo 阅读全文