Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_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
954b0f0d
authored
Mar 24, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
647615c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
20 deletions
1.py
2.py
1.py
View file @
954b0f0d
chinese
=
int
(
input
(
"请输入语文成绩"
))
a1
=
int
(
input
(
"请输入第一个人的体重:"
))
math
=
int
(
input
(
"请输入数学成绩"
))
b1
=
input
(
"请输入第一个人的名字:"
)
english
=
int
(
input
(
"请输入英语成绩"
))
total
=
chinese
+
math
+
english
a2
=
int
(
input
(
"请输入第二个人的体重:"
))
avg
=
total
/
3
b2
=
input
(
"请输入第二个人的名字:"
)
print
(
"你的总分为:"
,
total
,
"分,平均分为:"
,
avg
,
"分"
)
\ No newline at end of file
a3
=
int
(
input
(
"请输入第三个人的体重:"
))
b3
=
input
(
"请输入第三个人的名字:"
)
maximum
=
a1
m_name
=
b1
if
a2
>
maximum
:
maximum
=
a2
m_name
=
b2
if
a3
>
maximum
:
maximum
=
a3
m_name
=
b3
print
(
"体重最重的人是:"
,
m_name
)
print
(
"他的体重是:"
,
maximum
)
\ No newline at end of file
2.py
View file @
954b0f0d
import
turtle
c
=
[]
turtle
.
penup
()
while
True
:
turtle
.
goto
(
0
,
-
50
)
a
=
int
(
input
())
turtle
.
pendown
()
b
=
split
(
','
)
turtle
.
circle
(
50
)
for
i
in
b
:
turtle
.
penup
()
i
=
int
(
i
)
turtle
.
goto
(
-
50
,
0
)
c
=
append
(
int
())
turtle
.
pendown
()
sum
=
sum
(
c
)
turtle
.
forward
(
100
)
if
(
sum
>
60
)
=
(
sum
>
203
):
turtle
.
print
(
'ds'
)
else
:
print
(
'sdsfa'
)
\ 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