Commit 398cbe22 by BellCodeEditor

auto save

parent a67635d3
Showing with 11 additions and 1 deletions
...@@ -4,6 +4,15 @@ ...@@ -4,6 +4,15 @@
bro1="关羽" bro1="关羽"
bro2="刘备" bro2="刘备"
bro3="张飞" bro3="张飞"
bros=["刘备","张飞","关羽"] bros=[2,3,4]
#删除
bros.pop(0)
bros.remove(3)
#增加
bros.insert(3,5)
bros.append(90)
h=[7,8,9]
bros.extend(h)
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