Commit 111c5c07 by BellCodeEditor

save project

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