Commit 853173eb by BellCodeEditor

auto save

parent 26b3b1d4
Showing with 8 additions and 1 deletions
......@@ -8,6 +8,12 @@ bros=["刘备","关羽","张飞"]
bro1=["关羽",160,8.5]
bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3]
bros[0]="关羽"
bros[0]="关羽"#列表名[索引]=修改的参数。修改列表中的指定参数
bros[1]="刘备"
print(bros)
#列表名.pop()
# 1·不输入索引时默认删除最后一个
# 2·输入索引删除指定参数
#列表名.remove(参数)
#从左往右筛查,直到遇到指定参数并删除
\ 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