猫史档案馆


【Python作品分享】圆锥【作品秀】

用户:Lewier_Lewier_查看:0 回复:3 评论:0 创建时间:2023-07-14T10:29:53


【作品展示】

center_image

 

【作品介绍】

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

极其优美的东西,正着看看不出是啥,倒着看就会发现:这是一个3d圆锥!!!!!

 

【作品源代码】

import turtle
import turtle as t

__Pen = turtle.Pen()


def use(a, b):

    if (a <= b):
        __Pen.circle(a)
        print(a)
        use(a + 2, b)

__Pen.sety(-400)
__Pen.fillcolor("#ffff33")
__Pen.speed(-float("inf"))
__Pen.clear()
use(1, 1111)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
勤奋的程序喵勤奋的程序喵

 

点赞0


评论


灵猫cat灵猫cat

酷唉

 

点赞0


评论


鸽王之王axs鸽王之王axs

import turtle as t
def use(a, b):

    if (a <= b):
        t.circle(a)
        print(a)
        use(a + 2, b)


t.sety(400)
t.seth(-180)
t.fillcolor("#ffff33")
t.speed(0)
t.clear()
use(1, 401)
t.done()
修改了下~

点赞0


评论