Commit e82c6ba5 by BellCodeEditor

save project

parent 992518bc
Showing with 7 additions and 14 deletions
list_hero=['猴三',10,'猴一',21,'猴五',22,'猴队长',29,'猴七',30] dict={'果冻':10,'乐事':0}
print(list_hero) k=input('你药什么')
list_hero[-1]=50 if k in dict:
print(list_hero) print(str(dict[k])+'元')
else:
print('没有')
\ No newline at end of file
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero)
dict_hero['猴七']=50
print(dict_hero)
dict_hero['猴二']=200
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