⽤pythonturtle画画草地天空星星花朵⼩草画画真的是需要些许艺术细胞(这个我好像没有,所以将就将就吧。。)
直接上结果,代码在下⽅:
import turtle as t
r_a = 0.8
互联网出现雏形wight = 1400  # 宽
height = 980  # ⾼
t.hideturtle()python代码画图案>前端开发手册
t.setup(wight, height)
#绘画速度
def move_pen(x, y):  # 位置
osi参考模型包括
t.pu()
<(x - wight / 2 + 50, y - height / 2 + 50)
t.pd()
def pen_set(size, r1, g1, b1, r2=0, g2=0, b2=0):  # 画笔粗细、描边颜⾊、填充颜⾊    t.pensize(size)
def draw_bg():  # 画草地、画天空
# 画草地
move_pen(-50, 310)
pen_set(1, 255, 248, 170, 255, 248, 170)
t.begin_fill()
t.seth(-90)
t.fd(350)
t.seth(0)
t.fd(1400)
t.seth(90)程序设计语言是
简单的网站代码大全t