Commit 9f2aeaad by BellCodeEditor

save project

parent f8b6103f
Showing with 57 additions and 16 deletions
name="悟空" from turtle import *
word="欢迎" penup()
print(name+word) setpos(0,100)
print(type(name)) hideturtle()
\ No newline at end of file fillcolor('green')
pendown()
for i in range(6):
begin_fill()
for i in range(3):
forward(150)
left(120)
end_fill()
forward(150)
right(60)
fillcolor('red')
begin_fill()
for i in range(6):
forward(150)
right(60)
end_fill()
done()
\ No newline at end of file
print("hi")
\ No newline at end of file
list=[15,30,25,17,87,88,27,89,76,19]
h=0
for i in list:
h=h+i
print(h)
\ No newline at end of file
from turtle import * from turtle import *
hideturtle() hideturtle()
bgcolor('black') x= 30
color('yellow') for i in range(12):
x=10 penup()
y=0 forward(120)
for i in range(10):
pendown() pendown()
cire(x,360) fillcolor('yellow')
begin_fill()
right(30)
forward(80)
left(60)
forward(80)
left(120)
forward(80)
left(60)
forward(80)
right(30)
end_fill()
penup() penup()
x+=10 forward(120)
y-=10 pendown()
sety(y) setheading(x)
x+=30
penup()
setpos(0,-120)
pendown()
pencolor('red')
circle(120,360)
done() 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