Commit 6798813b by BellCodeEditor

save project

parent 0ed529d9
Showing with 15 additions and 11 deletions
...@@ -11,15 +11,18 @@ ...@@ -11,15 +11,18 @@
# print("登录成功!") # print("登录成功!")
# break # break
# print("欢迎来到贝尔编程!") # print("欢迎来到贝尔编程!")
cl=["red","violet","yellow","orange"] # cl=["red","violet","yellow","orange"]
import turtle # import turtle
s=turtle.Screen() # s=turtle.Screen()
pen=turtle.Pen() # pen=turtle.Pen()
for i in range (1,300): # for i in range (1,300):
pen.forward(i) # pen.forward(i)
pen.pencolor(cl[i%4]) # pen.pencolor(cl[i%4])
pen.right(91) # pen.right(91)
s.bgcolor(black) # s.bgcolor(black)
pen.hideturtle() # pen.hideturtle()
turtle.done() # turtle.done()
i=5
j=7
print(i,'+',j,'=',j*i)
\ 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