Commit b36a04f1 by BellCodeEditor

save project

parent 3a938490
Showing with 10 additions and 1 deletions
name=input('你叫啥名啊?') name=input('你叫啥名啊?')
power=int(input('你臂力多少?')) power=int(input('你臂力多少?'))
list_hero=['猴三',10,'猴一',21,'猴五',22,'队长',29,'猴七'30] list_hero=['猴三',10,'猴一',21,'猴五',22,''',29,'猴七'30]
for i in range9(len(list_hero)): for i in range9(len(list_hero)):
if i%2==1 and list_hero[i]>=power: if i%2==1 and list_hero[i]>=power:
...@@ -10,3 +10,11 @@ for i in range9(len(list_hero)): ...@@ -10,3 +10,11 @@ for i in range9(len(list_hero)):
print(dict_hero['队长'])
dict_here['f']
print(dict_hero)
dict_hero[d]=25
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