Commit b50f9a06 by BellCodeEditor

save project

parent f7060af5
Showing with 13 additions and 4 deletions
a="a"
b=10
c=["张三",5,"李四",20,"小子",30,"大子",100]
for i in range(len(c)):
if i%2==1 and b<=c[i]:
c.insert(i-1,b)
c.insert(i-1,a)
break
print(c[-6:])
\ No newline at end of file
bro1="关羽" bro1="关羽"
bro2="刘备" bro2="刘备"
bro3="张飞" bro3="张飞"
bros=["刘备","关羽","张飞"] bros=["刘备","关羽","张飞","不知道","嘿嘿嘿嘿嘿嘿嘿嘿"]
bros.insert(3,'陈捣蛋') print(bros[:2])
print(bros) \ No newline at end of file
\ 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