Commit d8b14996 by BellCodeEditor

auto save

parent e240ae3b
Showing with 42 additions and 5 deletions
"""
a="你好"
b=3
c=4.5
print(type(c))
"""
import turtle#导入Turtie模块
P=turtle.Pen()#创建画笔
P.shape("turtle")#改变画笔形状
P.fillcolor("purple")#准备颜料
P.begin_fill()#开始上色
"""
P.forward(90)
P.right(144)
P.forward(90)
P.right(144)
P.forward(90)
P.right(144)
P.forward(90)
P.right(144)
P.forward(90)
P.right(144)
#画五角星的方发
"""
for i in range(50):
P.forward(100)
P.right(170)
#画太阳的方法
"""
P.right(45)
P.forward(200)
P.left(90)
P.forward(200)
P.circle(100,180)
P.right(90)
P.circle(100,180)
#画爱心的方法
"""
P.end_fill()#结束填充
P.hideturtle()#隐藏画笔
turtle.done()
a="你好"
b=3
c=4.5
print(type(c))
\ 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