Commit 7514f749 by BellCodeEditor

save project

parent 4ab6a69b
Showing with 8 additions and 8 deletions
a= ['华雄']
c='颜良'
b='文丑'
a.insert(2,c)
a.insert(3,b)
print(a)
\ No newline at end of file
name='刘强'
power=66
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
for i in range(len(hero)):
if i%2==1 and hero[i]>power
hero.insert(i-1,name)
hero.insert(i,power)
\ 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