Commit 2be27adc by BellCodeEditor

auto save

parent db4ec920
Showing with 56 additions and 0 deletions
#print("hello world")
#name = "悟空 "
#word = "非常感谢"
#print(name+word)
#num = 9
#float_num = 3.1415926
#name = "悟空"
#goods = ["雪碧" , "可口可乐" , "咖啡"]
#print(type(goods))
#import turtle
#pen = turtle.Pen()
#turtle.done()
#import turtle
#p = turtle.Pen()
#p.shape('square')
#p.forward(200)
#p.left(45)
#p.forward(200)
#turtle.done()
#import turtle
#p = turtle.Pen()
##p.fillcolor("blue")
#p.begin_fill()
#for i in range(5):
# p.forward(200)
# p.left(144)
#p.end_fill()
#turtle.done()
import turtle
p = turtle.Pen()
# 画笔的速度
p.speed(1000)
# 画笔的颜色
p.color('red')
# 画笔填充的颜色
p.fillcolor("yellow")
# 填充开始
p.begin_fill()
# 画笔的移动
for i in range(72):
p.forward(200)
p.left(175)
# 填充结束
p.end_fill()
turtle.done()
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