Commit 4d29223a by BellCodeEditor

save project

parent f2a14054
Showing with 12 additions and 17 deletions
bros=["刘备","关羽","张飞"]
a=["华雄"]
bros=["刘备","关羽","张飞"]
bro1=["刘备",183,9.6]
bro2=["关羽",185,9.5]
bro3=["张飞",180,9.3]
for i in range(len(bros)):
print(bros[i])
print()
for i in range(len(bro1)):
print(bro1[i],end=" ")
print()
for i in range(len(bro2)):
print(bro2[i],end=" ")
print()
for i in range(len(bro3)):
print(bro3[i],end=" ")
\ No newline at end of file
a=["华雄"]
a.append("关羽")
print(a)
a.insert(1,"关羽")
print(a)
b=["华雄","张飞"]
a.extend(b)
print(a)
\ 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