找回密码
 立即注册
×

00:00:00

您有一张9.9元限时体验卡,马上领取获得VIP尊享特权。

使用Python画一只鹈鹕

半小时前 来自 小甲鱼 发布 @ AI专区

用 turtle 库画一只简笔画鹈鹕,复制运行即可:
  1. import turtle
  2. t = turtle.Turtle()
  3. t.speed(0)
  4. t.pensize(3)
  5. def jump(x, y):
  6.     t.penup()
  7.     t.goto(x, y)
  8.     t.pendown()
  9. # 身体
  10. jump(0, -50)
  11. t.setheading(0)
  12. t.fillcolor("#f6e3b4")
  13. t.begin_fill()
  14. t.circle(85)
  15. t.end_fill()
  16. # 翅膀
  17. jump(-55, -5)
  18. t.setheading(120)
  19. t.fillcolor("#e6c97a")
  20. t.begin_f
复制代码

免责声明:

本平台旨在开源共享精神,请勿发布敏感信息,任何违法信息我们将移交公安机关;

上一篇: 使用HTML画一只鹈鹕

下一篇: AI智能提问

Archiver|手机版|小黑屋|鱼C工作室 ( 粤ICP备18085999号-1 )

GMT+8, 2026-11-17 03:06

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

返回顶部