Commit 06adbee5 by BellCodeEditor

save project

parent 64efca05
Showing with 28 additions and 2 deletions
hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30] hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(hero['猴队长'])
hero['猴七']=32 hero['猴七']=32
print(hero) print(hero)
hero['猴十']=25
print(hero)
KFC={'汉堡':20,'可乐':8,'鸡翅':12.5,'薯条':9.9,'蛋挞':8,'全鸡':43,'瑞幸':12,}
y=input("你想要吃什么呀")
if y in KFC:
print("你好,你的"+y+"需要"+str(KFC[y])+"元")
else:
print("抱歉,没有您想要的商品,请重新选购")
\ No newline at end of file
city ==['纽约','华盛顿','桃源岛','洛杉矶','芝加哥',旧金山]
city ==['纽约','华盛顿','桃源岛','洛杉矶','芝加哥',旧金山]
raise=input('你想去哪里啊?')
if raise in city:
print('可以乘坐飞机通往'+raise)
else:
print('没有'+raise+'这座城市')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment