Commit 7e21b3de by BellCodeEditor

save project

parent 1db4a0b8
Showing with 19 additions and 0 deletions
name='李四'
power=69
hero=['甲',33,'乙',42,'丙',57,'丁',91,'张三',103]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print(hero)
print(hero[6:12])
a=['j','j']
b=['a','a','a','a']
c=['e','e']
a.append(c)
b.insert(1,'1')
c.extend(b)
print(b[1:3])
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