Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-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
cbd36682
authored
Oct 16, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
a0fda403
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
diy1.py
diy1.py
View file @
cbd36682
# 利用write()帮助悟空给诺依回信吧~
#导入turtle模块
#创建画笔
#用write()方法书写内容
#隐藏画笔
#保存画布
# 导入turtle模块
# 创建背景screen
# 设置背景颜色 light blue
# 创建画笔
# 抬笔
# 移动到(100,-100)
# 用write()方法书写内容
# 隐藏画笔
# 创建变量 len 用textinput方法给它赋值
len
=
screen
.
textinput
()
# 强制转换len 类型
len
=
float
(
len
)
#创建新画笔pen1
#设置画笔大小
#设置画笔颜色
#画爱心
#左转45
#移动
100
#画半圆
#移动
2*len
#画半圆
(len,180)
#右转90
#画半圆
#移动100
...
...
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