Commit ed3b7e2a by BellCodeEditor

save project

parent eba0c8bc
Showing with 11 additions and 0 deletions
#7.二维列表
#二维列表中的信息以行和列的形式表示,第一个标代表元素所在的列
#二维列表就是包含列表的列表,即一个列表的每个元素又都是一个列表
verse=[["移","舟","泊","烟","渚"],["日","暮","客","愁","新"],["野","旷","天","低","树"],["江","清","月","近","人",]]
print(verse)
for i in range(4):
for j in range(5):
print(verse[i][j],end=" ")
print()
\ 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