Python程序教程

您现在的位置是:首页 >  Python

当前栏目

用python写一个简单的表白代码

python,一个,简单,表白,代码
2025-03-25 08:59:31 时间

大家好,又见面了,我是你们的朋友全栈君。

from turtle  import *

color('black','red')
begin_fill()

penup()
goto (50,50)
pendown()

right(45)
goto(100,0)
left(90)
fd(120)
circle(50,225)

penup()
goto(0,0)
pendown()

left(135)
fd(120)
circle(50,225)
seth(90)
circle(50,225)

fd(121)
end_fill()
left(56)

penup()
goto(-210,40)
pendown()
goto(0,80)
penup()
goto(160,110)
pendown()
goto(320,140)

done()

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/145090.html原文链接:https://javaforall.cn