Commit 578be1c6 by BellCodeEditor

save project

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