在python中如何使用循环结构画四个相切的圆 5
求教,我想把这个代码改用循环结构,请大家指教,最好附代码,急急急。多谢#DrawFourCircle1.pyfromturtleimport*pencolor("red"...
求教,我想把这个代码改用循环结构,请大家指教,最好附代码,急急急。多谢
#DrawFourCircle1.py
from turtle import *
pencolor("red")
speed(6)
#1
circle(50)
penup()
forward(100)
#2
pendown()
circle(50)
penup()
right(90)
forward(100)
#3
left(90)
pendown()
circle(50)
left(180)
penup()
forward(100)
#4
right(180)
pendown()
circle(50) 展开
#DrawFourCircle1.py
from turtle import *
pencolor("red")
speed(6)
#1
circle(50)
penup()
forward(100)
#2
pendown()
circle(50)
penup()
right(90)
forward(100)
#3
left(90)
pendown()
circle(50)
left(180)
penup()
forward(100)
#4
right(180)
pendown()
circle(50) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询