Commit eb94d356 by BellCodeEditor

save project

parent c256c561
Showing with 28 additions and 0 deletions
# 我们都爱夸夸夸 # 我们都爱夸夸夸
# name=input("请问你叫什么名字")
# print(name+",你好呀")
# import turtle #导入turtle库
# pen=turtle.Pen() #调用画笔
# pen.fillcolor("red") #设置画笔颜色
# pen.begin_fill() #开始填充
# for i in range(4): #重复执行4次
# pen.forward(200) #移动200步
# pen.left(90) #左转90度
# pen.end_fill() #结束填充
# pen.hideturtle() #隐藏画笔
# turtle.done() #保存画布
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.shape("arrow")
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(3):
for i in range(36):
pen.forward(10)
pen.left(10)
pen.end_fill()
pen.forward(100)
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