Commit 8d55a7c0 by BellCodeEditor

save project

parent f7a1629d
Showing with 18 additions and 6 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码 # 这是悟空为花果山小猴做臂力测试的程序代码
a = {'老八味':5,'乔治味':3,'原汁原味':2,'九转大肠味':8} # from time import *
b = input("你想要什么口味的佩奇呀?") # a = {'老八味':5,'乔治味':3,'原汁原味':2,'九转大肠味':8}
if b in a: # b = input("你想要什么口味的佩奇呀?")
print("需要付",str(a[b]),"元钱") # if b in a:
# print("需要付",str(a[b]),"元钱")
# sleep(2)
# print("没钱就滚开,穷逼")
# else:
# print("没有此商品")
name = {'小美':99}
a = input()
b = int(input())
if a in name:
if b > name[a]:
name[a] = b
else: else:
print("没有此商品") name[a] = b
\ No newline at end of file print(name)
\ 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