Commit f7a1629d by BellCodeEditor

save project

parent c7ea1ba1
Showing with 7 additions and 4 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码 # 这是悟空为花果山小猴做臂力测试的程序代码
list_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} a = {'老八味':5,'乔治味':3,'原汁原味':2,'九转大肠味':8}
print(list_hero['猴队长']) b = input("你想要什么口味的佩奇呀?")
list_hero['猴十'] = 10 if b in a:
\ No newline at end of file print("需要付",str(a[b]),"元钱")
else:
print("没有此商品")
\ No newline at end of file
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