猫史档案馆


【Python作品分享】魔法阵【作品秀】

用户:✨传奇✨泰拉悠悠球✨传奇✨泰拉悠悠球查看:0 回复:0 评论:0 创建时间:2021-07-16T23:26:59


【作品展示】

center_image

 

【作品介绍】

魔法阵

 

【作品源代码】

import turtle
# 魔法阵
t = turtle.Pen()
t.hideturtle()
turtle.bgcolor("#000000")
t.pensize(3)
t.color("yellow",'red')
# 绘制外圆
t.begin_fill()
t.circle(60)
t.sety(60)
# 绘制外圆花纹
for i in range(12):
    t.circle(30, steps=4)
    t.left(30)
t.end_fill()
t.sety(20)
#
t.fillcolor("#ffff66")
t.begin_fill()
t.circle(40)
t.end_fill()
t.sety(100)
t.setheading((-60))
#
t.fillcolor('orange')
t.begin_fill()
for x in range(6):
    t.forward(23)
    t.left(60)
    t.forward(23)
    t.right(120)
t.end_fill()
t.penup()
t.sety(-30)
t.setx(-30)
t.pendown()
t.write("魔法阵",font=("Ariai",20))

print("   yyds      yyds")
print("  yydsyydsyydsyyds")
print("yydsyydsyydsyydsyyds")
print(" yydsyydsyydsyydsy")
print("  yydsyydsyydsyyd")
print("   yydsyydsyydsy")
print("    yydsyydsyyd")
print("     yydsyydsy")
print("      yydsyyd")
print("       yydsy")
print("        yyd")
turtle.done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页