Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_5
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
00199ad1
authored
Dec 08, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
f080190e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
123.py
as.py
o.py
123.py
View file @
00199ad1
for
l
in
range
(
1
,
10
):
for
n
in
range
(
1
,
l
+
1
):
print
(
l
,
"*"
,
n
,
"="
,(
l
*
n
),
sep
=
""
,
end
=
" "
)
print
()
bros
=
[
"关羽"
,
"刘备"
,
"张飞"
]
print
=
bros
[
2
]
as.py
0 → 100644
View file @
00199ad1
s1
=
{
"数学"
:
120
,
"语文"
:
120
}
s2
=
{
"数学"
:
106
,
"语文"
:
116
}
s3
=
{
"数学"
:
100
,
"语文"
:
107
}
scores
=
{
"小明"
:
s1
,
"小王"
:
s2
,
"小李"
:
s3
}
while
True
:
a
=
input
(
"名字:"
)
if
a
in
scores
:
s
=
""
for
m
,
n
in
scores
[
a
]
.
items
():
s
=
s
+
m
+
str
(
n
)
+
" "
print
(
a
+
"同学,你的成绩是"
+
s
)
else
:
print
(
"同学,没有查到你的成绩"
)
o.py
0 → 100644
View file @
00199ad1
print
(
3.1415926
*
2
)
\ No newline at end of file
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