找回密码
 中文实名注册
搜索
查看: 1312|回复: 1

太级图

[复制链接]

10

主题

51

回帖

-270

积分

限制会员

sgsdgsg

积分
-270
发表于 2022-5-22 12:01:47 | 显示全部楼层 |阅读模式
购买主题 已有 1 人购买  本主题需向作者支付 10 金钱 才能浏览
回复

使用道具 举报

2

主题

15

回帖

662

积分

高级会员

积分
662
发表于 2022-5-22 14:40:07 | 显示全部楼层

import turtle

turtle.title("太极图")

turtle.screensize(bg='black')

turtle.speed(0)

turtle.pensize(2)

turtle.fillcolor('yellow')

turtle.begin_fill()

turtle.penup()

turtle.goto(-150, -150)

turtle.pendown()

for r in range(4):

     turtle.forward(300)

     turtle.left(90)

turtle.end_fill()

turtle.penup()

turtle.goto(00, -100)

turtle.pendown()
turtle.fillcolor('white')
turtle.begin_fill()
turtle.circle(100, 180)
turtle.circle(50, -180)
turtle.circle(-50, -180)
turtle.end_fill()

turtle.pendown()
turtle.fillcolor('black')
turtle.begin_fill()
turtle.circle(-50, 180)
turtle.circle(50, 180)
turtle.circle(100, 180)
turtle.end_fill()
turtle.penup()
turtle.goto(0, 50)
turtle.fillcolor('white')
turtle.begin_fill()
turtle.circle(10, 360)
turtle.end_fill()

turtle.goto(0, -50)
turtle.fillcolor('black')
turtle.begin_fill()
turtle.circle(10, 360)
turtle.end_fill()
turtle.done()









回复

使用道具 举报

您需要登录后才可以回帖 登录 | 中文实名注册

本版积分规则

快速回复 返回顶部 返回列表