Commit ead336bb by BellCodeEditor

save project

parent 3046bb01
Showing with 4 additions and 13 deletions
import turtle a=int(input('列:'))
a=turtle.Pen() b=int(input('行:'))
c=turtle.Screen() print(a,'×',b,'=',(a*b))
c.bgcolor('black') \ No newline at end of file
a.speed(100)
colors=['red','orange','yellow','blue']
for b in range(300):
a.pencolor(colors[b%4])
a.right(91)
a.forward(b)
a.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