Commit c251fb81 by BellCodeEditor

save project

parent e6db6158
Showing with 20 additions and 0 deletions
xcv=[]'袁术','关羽','曹操'
xcv.remove('关羽')
print(xcv)
\ No newline at end of file
a=['吕布']
b=['袁术','刘备','关羽','张飞','曹操']
a.extend(b[1:4])
print(a)
\ No newline at end of file
name='g'
powe=(26)
hero=['a',12,'b',19,'c',20,'d',21,'e',24,'f',30]
for i in range(len(hero)):
if i%2==1 and hero[i]>=powe:
hero.insert(i-1,name)
hero.insert(i,powe)
break
print(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