[Python turtle drawing heart] practical learning

code show as below:

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()

The effect is as follows:


The specific details will be updated when there is time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324918629&siteId=291194637