Commit 8f9ed159 by BellCodeEditor

auto save

parent 3515f1dd
Showing with 20 additions and 2 deletions
import turtle
pen=turtle.Pen()
turtle.done()
pen.hideturtle()
\ No newline at end of file
# 我们都爱夸夸夸
\ No newline at end of file
import turtle
pen_color=['red','blue','green','orange']
lanth=15
n=int(input('要画几条边'))
for i in range(n):
turtle.pencolor(pen_color[i%4])
turtle.forward(lanth)
turtle.left(90)
lanth=lanth+5
turtle.done
sum=0
for i in range(101):
sum=sum+i
print(sum)
\ 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