Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson2_diy1
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
5e62c766
authored
Sep 08, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
04560dad
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
0 deletions
1.py
112.py
12.py
1234.py
159.py
1.py
0 → 100644
View file @
5e62c766
a
=
int
(
input
(
"本次数学成绩:"
))
if
a
<
60
:
print
(
"男女混合双打"
)
elif
a
<
70
:
print
(
"男打"
)
elif
a
<
80
:
print
(
"女打"
)
elif
a
<
90
:
print
(
"棒棒糖"
)
elif
a
<
100
:
print
(
"火锅"
)
elif
a
==
100
:
print
(
"吃屎"
)
x
=
a
print
(
"数学成绩"
,
x
)
112.py
0 → 100644
View file @
5e62c766
a
=
0
n
=
1
while
n
<=
100
:
a
=
a
+
n
n
=
n
+
1
print
(
"1+2+...+100="
,
a
)
\ No newline at end of file
12.py
0 → 100644
View file @
5e62c766
print
(
i
,
"*"
,
j
,
"="
,
i
*
j
,
end
=
" "
)
\ No newline at end of file
1234.py
0 → 100644
View file @
5e62c766
for
i
in
range
(
1
,
10
):
for
j
in
range
(
1
,
i
+
1
):
print
(
i
,
"*"
,
j
,
"="
,
i
*
j
,
end
=
"||"
)
print
()
\ No newline at end of file
159.py
0 → 100644
View file @
5e62c766
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