Commit 372f6a15 by BellCodeEditor

save project

parent 5b3e3252
Showing with 10 additions and 0 deletions
...@@ -3,5 +3,15 @@ ...@@ -3,5 +3,15 @@
# 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布: # 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布:
a=['吕布'] a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备','曹操'] b=['袁术','公孙瓒','关羽','张飞','刘备','曹操']
name='刘强'
power=66
hero=['赵一',30,'a',37,'b',52,'c',89,'d',98]
for i in range(len(hero)):
if i%2==1 and hero[i] >= power:
hero.insert(i-1,name)
hero.insert(i,power)
#hero[6:]
break
print(hero[6:])
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