Commit b0bdb4c7 by BellCodeEditor

save project

parent acee698a
Showing with 6 additions and 1 deletions
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# 来,我给你起个头~ # 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞... # 从前啊,有三个bro,分别是:刘备、关羽、张飞...
#他们来到了桃园准备结拜 #他们来到了桃园准备结拜
bros = ['刘备','关羽','张飞'] bros = ['刘备','关羽','张飞','曹操']
#酒也准备好了,誓词也准备好了,得排辈分,三人的年龄 #酒也准备好了,誓词也准备好了,得排辈分,三人的年龄
bro1=['刘备',178,28] bro1=['刘备',178,28]
bro2=['关羽',190,30] bro2=['关羽',190,30]
...@@ -12,4 +12,8 @@ bro3=['张飞',180,27] ...@@ -12,4 +12,8 @@ bro3=['张飞',180,27]
bros[0]='关羽' bros[0]='关羽'
bros[1]='刘备' bros[1]='刘备'
#调整排名后,输出新的列表 #调整排名后,输出新的列表
print(bros)
#bros.remove('曹操')
#bros.pop(3)
bros.pop(-3)
print(bros) print(bros)
\ 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