Commit e6888275 by BellCodeEditor

auto save

parent 4ea37e4a
Showing with 27 additions and 0 deletions
import turtle
#创建画笔
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor('black')
pen.hideturtle() #隐藏画笔
pen.speed(-100) #设置画笔移动的速度
colors = ['red','yellow','green','orange']
for i in range(10,1000):
pen.pencolor(colors[i%4])
pen.forward(i) #移动
pen.right(91) #右转
turtle.done() #保存画布
\ No newline at end of file
#九九乘法表
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',i*j,end=' ')
print()
\ 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