Commit 9f2aeaad by BellCodeEditor

save project

parent f8b6103f
Showing with 57 additions and 16 deletions
name="悟空"
word="欢迎"
print(name+word)
print(type(name))
\ No newline at end of file
from turtle import *
penup()
setpos(0,100)
hideturtle()
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 *
hideturtle()
bgcolor('black')
color('yellow')
x=10
y=0
for i in range(10):
x= 30
for i in range(12):
penup()
forward(120)
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()
x+=10
y-=10
sety(y)
forward(120)
pendown()
setheading(x)
x+=30
penup()
setpos(0,-120)
pendown()
pencolor('red')
circle(120,360)
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