用户:
白楚不会编程查看:0 回复:0 评论:0 创建时间:2022-12-04T11:48:11
【作品展示】

【作品介绍】
666三连一下
【作品源代码】
from turtle import *
import time
setup(600, 600, 750, 150)
bgcolor("blue")
def my_goto(x, y):
up()
goto(x, y)
down()
def ref_line():
ht()
speed(0)
pencolor("Grey")
pensize(1)
row_y = 300
for i in range(int(600 / 100 - 1)):
row_y -= 100
my_goto(-300, row_y)
fd(600)
left(90)
column_x = -300
for i in range(int(600 / 100 - 1)):
column_x += 100
my_goto(column_x, -300)
fd(600)
right(90)
my_goto(0, 0)
def taiji():
color('black')
begin_fill()
circle(240, 180)
end_fill()
color('white')
begin_fill()
circle(240, 180)
end_fill()
color('black')
begin_fill()
circle(120, -180)
end_fill()
color('white')
begin_fill()
circle(-120, -180)
end_fill()
up()
rt(90)
fd(160)
lt(90)
down()
color('black')
begin_fill()
circle(40)
end_fill()
up()
rt(90)
fd(240)
lt(90)
down()
color('white')
begin_fill()
circle(40)
end_fill()
ref_line()
goto(0, -240)
taiji()
ht()
def spin(d):
up()
home()
right(90 + d * n)
fd(240)
left(90)
taiji()
n = 0
try:
while True:
tracer(0)
clear()
spin(5)
n += 1
update()
time.sleep(0.01)
except:
print("Exit")
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn