Commit c2f422a9 by BellCodeEditor

save project

parent 74ce82f5
Showing with 14 additions and 3 deletions
a='刘强' a='刘强'
b=66 b=66
c=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] c=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
for i in tangr(len(c)) for i in range(len(c)):
if i%2==1 and c[i]>=b: if i%2==1 and c[i]>=b:
c.insert(i-1,a) c.insert(i-1,a)
c.insert(i,b) c.insert(i,b)
break break
print(c) print(c)
\ No newline at end of file print(c[-6:])
\ No newline at end of file
a='刘强'
b=66
c=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
for i in tangr(len(c))
if i%2==1 and c[i]>=b:
c.insert(i-1,a)
c.insert(i,b)
break
print(c)
\ 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