Commit a67fb8e9 by BellCodeEditor

save project

parent 8213b9a6
Showing with 11 additions and 6 deletions
# 勇于挑战的创造师,请运行下面的代码,观察运行结果,和小伙伴们说说你的发现? h=['a',30,'b',37,'c',52,'d',66,'e',89,'f',98]
a= ['华雄'] n='d'
c=['颜良','文丑'] p=66
a.extend(c) h=['a',30,'b',37,'c',52,'e',89,'f',98]
print(a) for i in range(len(h)):
\ No newline at end of file if i%2==1 and h[i]>=p:
h.insert(i-1,n)
h.insert(i,p)
break
print(h)
\ 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