Commit 7e863552 by BellCodeEditor

auto save

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