list01 = [item ** 2 for item in range(1,11)]
list02 = [item for item in list01 if item % 2 != 0]
list03 = [item + 1 for item in list01 if item % 2 == 0 and item > 5]
print(list01)
print(list02)
print(list03)
dict_commodity = {}
while True:
name = input("请输入商品名称:")
if name == "":
break
price = int(input("请输入商品单价:"))
dict_commodity[name] = price
for k,v in dict_commodity.items():
print("%s商品的价格是%d" %(k,v))
if "游戏机" in dict_commodity:
print(dict_commodity["游戏机"])