首页
Loading
您所在的位置:首页 > 学科知识 > 技术天地 > 正文

简单现成的python代码

作者: 来源: 日期:2023/11/27 18:05:45 人气:142 加入收藏 评论:0 标签:

画心 (color 颜色)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import turtle
def curvemove():
  for i in range(200):
    turtle.right(1)
    turtle.forward(1)
turtle.color('red')
turtle.begin_fill()
turtle.left(140)
turtle.forward(111.65)
curvemove()
turtle.left(120)
curvemove()
turtle.forward(111.65)
turtle.end_fill()
turtle.penup()
turtle.goto(-40, -50)
turtle.pendown()
turtle.write('', font = ('SimHei', 15, 'bold'))
turtle.hideturtle()


    本文网址:http://www.wzdh123.cn/show.asp?id=3765
    读完这篇文章后,您心情如何?
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    更多>>网友评论
    发表评论
    编辑推荐
    • 没有资料