Commit 3e6a8051 by BellCodeEditor

save project

parent 5c2f2b61
Showing with 26 additions and 0 deletions
import turtle
a = ['green','red','orange','yellow']
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor('black')
pen.speed(100)
for i in range(1,300):
pen.color(a[i%4])
pen.forward(i)
pen.right(91)
penhide()
turtle.down()
\ No newline at end of file
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
screen.bgcolor('black')
pen.speed(100)
pen.forward(100)
turtle.down()
\ No newline at end of file
a = ['刘备','关羽','张飞']
a[0] = '关羽'
a[1] = '刘备'
print(a)
\ 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