Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ed3b7e2a
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
eba0c8bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
list.py
list.py
0 → 100644
View file @
ed3b7e2a
#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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment