用Python畫出笑臉


from turtle import *
penup()
goto(0,-200)
pendown()
circle(200)

penup()
goto(-100,50)
pendown()
begin_fill()
circle(17.5)
end_fill()

penup()
goto(100,50)
pendown()
begin_fill()
circle(17.5)
end_fill()

penup()
goto(0,50)
pendown()
circle(-70,steps=3)

penup()
goto(-150,-70)
pendown()
right(15)
goto(0,-170)
goto(150,-70)

hideturtle()


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM