Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_1
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
5d81f93a
authored
Dec 25, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8c962397
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
2 deletions
123.py
444.py
func.py
123.py
0 → 100644
View file @
5d81f93a
import
func
xyz
=
func
.
your8
bb
=
func
.
add
print
(
bb
)
444.py
0 → 100644
View file @
5d81f93a
import
turtle
s
=
turtle
.
Screen
()
p
=
turtle
.
Turtle
()
a
=
int
(
s
.
textinput
(
"提示"
,
"你要画多大的爱心"
))
s
.
bgcolor
(
"light blue"
)
p
.
penup
()
p
.
goto
(
200
,
100
)
p
.
pendown
()
p1
=
turtle
.
Pen
()
p
.
write
(
"你
\n
好
\n
呀"
,
font
=
(
"Times"
,
50
,
"normal"
))
p
.
hideturtle
()
p1
.
pencolor
(
"red"
)
p1
.
left
(
45
)
p1
.
forward
(
2
*
a
)
p1
.
circle
(
a
,
180
)
p1
.
right
(
90
)
p1
.
circle
(
a
,
180
)
p1
.
forward
(
2
*
a
)
turtle
.
done
()
func.py
View file @
5d81f93a
...
...
@@ -11,5 +11,13 @@ def your8():
print
(
输入有误,请重新输入
)
else
:
total
.
append
(
unit
)
print
(
total
)
your8
()
return
total
b
=
your8
()
print
(
b
[
0
])
def
add
(
b
):
x
=
0
for
i
in
b
:
x
=
x
+
i
return
x
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