![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
turtle
宇同学
尽人事,听天命。
展开
-
python——turtle 赠人玫瑰,手留余香。
程序员必备撩妹神器二话不说,直接上代码。 import turtle as t # 定义一个曲线绘制函数 def DegreeCurve(n, r, d=1): for i in range(n): t.left(d) t.circle(r, abs(d)) # 初始位置设定 s = 0.2 # size t.setup(450*5*s, 750*5*s) t.pencolor("black") t.fillcolor("red") t.speed(100) t.pe原创 2021-03-04 15:57:34 · 175 阅读 · 2 评论 -
turtle——小猪佩奇
# -*- coding:utf-8 -*- import turtle as t import time def main(): t.pensize(4) t.hideturtle() t.colormode(255) t.color((255, 155, 192), "pink") t.setup(840, 500) t.speed(10) # 鼻子 t.pu() t.goto(-100, 100) t.pd() t.seth(-30) t.begin_fill() a = 0原创 2021-01-07 15:14:42 · 91 阅读 · 0 评论