Commit 544c9c95 by BellCodeEditor

save project

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