拿python畫個愛心吧

愛心

def f():
    for i in range(200):
        fd(1)
        right(1)
from turtle import*
setup()
speed(10)
left(140)
begin_fill()
color('red','red')
fd(111)
f()
left(120)
f()
fd(111)
end_fill()

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章