如何用代码复用简化自行车代码

#zixingche

from turtle import *
pensize(7)
speed(1)
penup()
backward(200)
seth(-90)
fd(80)
pendown()
circle(65)#chelunbanjing
seth(0)
penup()
fd(65)#1gelunzi
seth(-90)
fd(10)
seth(0)
pendown()
circle(10)
penup()
seth(90)
fd(10)
#over
seth(70)
pendown()
fd(240) #cheba
seth(-10)#chebajiaodu
fd(50)#chebachangdu
seth(30)#fushoujiaodu
fd(40)#fushouchangdu
backward(40)
seth(-10)
backward(100)#2beifushouchangdu
seth(30)
fd(40)
backward(40)
seth(-10)
fd(50)
seth(70)
backward(30)#over
seth(-70)
fd(240-30)#jiaodeng
seth(85)
fd(70)
seth(0)
fd(10)
backward(20)
fd(10)
seth(85)
backward(130)# youwentiygly
seth(0)
fd(10)
backward(20)
fd(10)
seth(85)
fd(130-70)#over
seth(-90)
penup()
fd(35)
seth(0)
pendown()
circle(35)#r=35
penup()
seth(90)
fd(35)#over
pendown()
seth(70)
fd(240-30)#zuowei
seth(0)
fd(181.5)
seth(127)
fd(30
1.5)
seth(-143)
fd(40*1.5)
seth(0)
fd((50-18)*1.5)#over
seth(-70)
fd(240-30)
seth(-90)
penup()
fd(65)
seth(0)
pendown()
circle(65)
backward(400)
fd(500)
backward(100)#chelian part 1
penup()
left(90)
fd(65-15)#r=15
seth(0)
pendown()
circle(15)
seth(7.926)
backward(143.6484)
fd(143.6484)
seth(90)
penup()
fd(30)
seth(180-7.926)
pendown()
fd(143.6484)

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。