Commit 578be1c6 by BellCodeEditor

save project

parent feae0061
Showing with 6 additions and 8 deletions
# 这是悟空为花果山小猴做臂力测试的程序代码 # 这是悟空为花果山小猴做臂力测试的程序代码
#name=input('你叫啥名啊?') #name=input('你叫啥名啊?')
#power=int(input('你臂力多少啊?')) #power=int(input('你臂力多少啊?'))
#list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30] dict={'猴三':3,'猴一':1,'猴五':5,'猴队长':100,'猴十':10}
a=input('你要什么?')
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} if a in dict:
dict_hero['猴队长']=32 print(a+'要'+sir(dict[a])+'元')
dict_hero['猴十']=25 else:
print(dict_hero['猴十']) print('滚!!')
print(dict_hero)
\ 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