Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-4-1_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
e138ba99
authored
Jun 02, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e9f631d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
如日.py/牛逼.py
如日.py/牛逼.py
0 → 100644
View file @
e138ba99
import
turtle
import
turtle
io
=
turtle
.
Pen
()
#点记法
screen
=
turtle
.
Screen
()
#创建画布
fi
=
screen
.
textinput
(
"输入框"
,
"你要多大的爱心?"
)
f
=
int
(
fi
)
#int整数 float浮点 str字符串
io
.
left
(
45
)
io
.
forward
(
2
*
f
)
io
.
circle
(
f
,
180
)
io
.
right
(
90
)
io
.
circle
(
f
,
180
)
io
.
forward
(
2
*
f
)
turtle
.
done
()
\ 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