当前位置:首页 / 文章测试 / 气球

气球

开始打字练习

import turtle as t

# 绘制第一个气球

t.color('pink')

t.begin_fill()

t.circle(100)

t.end_fill()

t.dot(20)

t.right(90)

t.forward(200)

# 绘制第二个气球

t.penup()

t.goto(150,200)

t.down()

t.left(90)

t.color('purple')

t.begin_fill()

t.circle(80)

t.end_fill()

t.dot(20)

t.right(90)

t.forward(120)

t.hideturtle()

声明:以上文章均为用户自行发布,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。