Commit a67fb8e9 by BellCodeEditor

save project

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