Python道路之——画自己名字

       班里大神用python是这么画的,果然只有对比才有伤害,,,(为什么大神说打开画图就可以看坐标画图,我一点都不会啊啊啊啊),所以只能惨烈的一点点修改,因为太丑了所以记录一下吧,万一以后会大神的方法了呢?

先把大神的链接放出来对比一下,不要放了就都走了啊啊啊啊

https://blog.todest.cn/post/50bbd1a0/

好了,放自己的了,明明代码长度差不多!!!

不丢人了,溜了溜了,,

from turtle import *
setup(1200,400,200,200)

#陈
penup()
fd(-181)
seth(90)
fd(51)
seth(-90)
pendown()
pensize(20)
fd(204)

penup()
seth(90)
fd(204)
seth(0)
pendown()
fd(70)

seth(-90)
fd(40)
seth(-150)
fd(30)
seth(-90)
fd(30)
seth(-30)
fd(30)
seth(-90)
fd(40)
seth(180)
fd(50)

penup()
seth(90)
fd(110)
seth(0)
fd(90)
pendown()

fd(95)
penup()
seth(180)
fd(40)
seth(80)
fd(40)
pendown()

seth(-120)
fd(110)
seth(0)
fd(85)
penup()
seth(180)
fd(40)
seth(90)
fd(30)
seth(-90)
pendown()
fd(150)
seth(150)
fd(30)
penup()
seth(90)
fd(50)
pendown()
seth(-120)
fd(30)

penup()
seth(0)
fd(80)
pendown()
seth(120)
fd(30)

#昱
penup()
seth(0)
fd(140)
seth(90)
fd(140)
pendown()
seth(-90)
fd(90)
seth(0)
fd(100)
seth(90)
fd(90)
seth(180)
fd(100)
seth(-90)
fd(45)
seth(0)
fd(100)

penup()
seth(-90)
fd(60)
seth(180)
fd(50)
pendown()
seth(-60)
fd(20)
penup()
seth(180)
fd(70)
pendown()
seth(0)
fd(120)
penup()
seth(-170)
fd(90)
pendown()
seth(-60)
fd(25)
penup()
seth(30)
fd(47)
pendown()
seth(-120)
fd(25)
penup()
seth(-90)
fd(30)
seth(180)
fd(80)
pendown()
seth(0)
fd(130)

#菡
penup()
seth(0)
fd(120)
seth(90)
fd(180)
pendown()
seth(0)
fd(120)
penup()
seth(180)
fd(80)
seth(90)
fd(20)
pendown()
seth(-90)
fd(50)
penup()
seth(90)
fd(50)
seth(0)
fd(40)
pendown()
seth(-90)
fd(50)

penup()
fd(30)
seth(180)
fd(40)
pendown()
seth(0)
fd(40)

seth(-120)
fd(30)
seth(-90)
fd(50)
seth(130)
fd(30)

penup()
seth(90)
fd(30)
seth(180)
fd(30)
pendown()

seth(-30)
fd(30)
seth(-120)
fd(40)

penup()
seth(0)
fd(90)
pendown()

seth(140)
fd(50)
seth(30)
fd(30)

penup()
seth(-90)
fd(60)
seth(-180)
fd(100)
pendown()

seth(-90)
fd(45)
seth(0)
fd(140)
seth(90)
fd(30)
seth(-90)
fd(40)

done()

猜你喜欢

转载自blog.csdn.net/dyyay521/article/details/100658992