Commit 8fa620a5 by BellCodeEditor

save project

parent e8ac9a19
Showing with 5 additions and 0 deletions
......@@ -4,10 +4,14 @@
bro1="关羽"
bro2="刘备"
bro3="张飞"
# 创建列表
bros=["刘备","关羽","张飞"]
# 设置信息
bro1=["关羽",160,8.5]
bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3]
# 交换刘备和关羽的位置
bros[0]="关羽"
bros[1]="刘备"
# 打印列表
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