Commit d4b0a8e2 by BellCodeEditor

auto save

parent 654bc3ba
Showing with 34 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
#导入turtle模块
import turtle
#增加背景
screen=tuple.Screen()
#设置背景颜色 bgcolor
pen=turtle.Pen()
#抬起画笔
#移动画笔到(100,-100)
pen.write("Hi,诺依\n turtle真好用!",font=())
#隐藏画笔 hideturtle
#创建一支画笔pen1
#设置画笔颜色 pencolor()
#设置画笔大小pensize()
#左转45度画正方形的一条边,边长100
#画一个半圆circle
#右转90度,再画一个半圆
#画正方形的边,边长100
pen1.hideturtle()
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment