【Python turtle 画爱心】实战学习

代码如下:

from turtle import *
def curvemove():
    for i in range(200):
        right(1)
        forward(1)
color('red','pink')        
begin_fill()
left(140)
forward(111.65)
curvemove()
left(120)
curvemove()
forward(111.65)
end_fill()
done()

效果如下:


具体细节,有空再更。

猜你喜欢

转载自blog.csdn.net/qwe641259875/article/details/80080243