Commit a786febd by BellCodeEditor

save project

parent e5505bdd
Showing with 1 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中? # 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
name='刘强' name='刘强'
power=66 power=66
hero=['彬彬',30,'阿伟',37,'穿山甲'',52,'杰哥',89,'华强',98] hero=['彬彬',30,'阿伟',37,'穿山甲',52,'杰哥',89,'华强',98]
# 自动吃屎 # 自动吃屎
for i inrange(len(hero)): for i inrange(len(hero)):
if i%2==1 and hero[i]>power: if i%2==1 and hero[i]>power:
......
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