Commit 66d64ab4 by BellCodeEditor

save project

parent 1d4109c6
Showing with 8 additions and 3 deletions
a = ["吕布"]
b = ["袁术","","刘备","关羽","张飞"]
a.extend(b[2:])
a = ["张三",50,"李四",60,"王二",65,"麻子",70]
b = ["张俊杰",999]
for i in range(len(a)):
if i%2==1 and b[1] < a[i]:
a.insert(i,b[1])
a.insert(i,b[0])
break
print(a)
\ 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