Commit 866ab231 by BellCodeEditor

auto save

parent 9fa97cf6
Showing with 20 additions and 5 deletions
for i in range(1,10):
for j in range(1,i+1):
print(j,"*",i,"=",(j*i),end=" ")
print()
# i = 1 #行
# for j in range(1,10): #列
# print(j,"*",i,"=",(j*i),end=" ")
......@@ -5,12 +5,18 @@
import turtle
pen = turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("black")
pen.speed(0)
# pen.pencolor(0.1,0.6,0.7)#RGB的小数值
# 请创造师在下面接着创作
# distance = 1
clo = ["red","blue","yellow","green"]
for i in range(1,300):
# distance+=1
pen.pencolor(clo[i%4])
pen.forward(i)
pen.left(91)
# 隐藏画笔,保存画布
pen.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