Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_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
432fff9d
authored
Jan 21, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
da6cfeb4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
145 additions
and
1 deletions
func.py
lesson1.py
lesson2.py
lesson3.py
shiyan.py
func.py
View file @
432fff9d
...
...
@@ -6,7 +6,114 @@ def new_inpurt():
break
else
:
try
:
money
=
int
(
money
)
mone
except
:
print
(
"请输入一整形"
)
else
:
...
...
lesson1.py
0 → 100644
View file @
432fff9d
fenshu
=
input
(
"请输入五科分数:"
)
zongfen
=
fenshu
.
split
(
","
)
num
=
0
for
i
in
zongfen
:
num
+=
int
(
i
)
print
(
num
)
print
(
float
(
num
/
len
(
zongfen
)))
\ No newline at end of file
lesson2.py
0 → 100644
View file @
432fff9d
import
turtle
pen
=
turtle
.
Pen
()
for
i
in
range
(
4
):
pen
.
forward
(
200
)
pen
.
left
(
90
)
pen
.
penup
()
pen
.
goto
(
100
,
100
-
50
)
pen
.
pendown
()
pen
.
color
(
"blue"
,
"blue"
)
pen
.
begin_fill
()
pen
.
circle
(
50
,
180
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
lesson3.py
0 → 100644
View file @
432fff9d
import
turtle
pen
=
turtle
.
Pen
()
pen
.
pencolor
(
"orange"
)
pen
.
circle
(
100
)
pen
.
left
(
90
)
pen
.
goto
(
0
,
200
)
pen
.
penup
()
pen
.
goto
(
-
100
,
100
)
pen
.
right
(
90
)
pen
.
pendown
()
pen
.
goto
(
100
,
100
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
shiyan.py
0 → 100644
View file @
432fff9d
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