猫史档案馆


【Python作品分享】能量补丁【教程贴】

用户:星辰很颠星辰很颠查看:0 回复:0 评论:0 创建时间:2022-07-20T18:57:18


【作品展示】

center_image

 

【作品介绍】

函数

 

【作品源代码】

'''09-能量补丁-工程包'''
import turtle as t
from random import *
import time
from refresh import refresh
t.bgpic('bg.png')
t.setup(1000, 540)
t.color(0.7,0.58, 0.97)
t.pensize(5)

# 请在下方键入本节课代码
def patch():
    t.fillcolor(0.2,0.11,0.72)
    t.begin_fill()
    t.left(30)
    t.forward(80)
    t.right(60)
    t.forward(80)
    t.right(60)
    t.forward(100)
    t.right(60)
    t.forward(80)
    t.right(60)
    t.forward(80)
    t.right(60)
    t.forward(100)
    t.end_fill()
    t.right(90)


t.penup()
t.goto(-240, 60)
patch()

t.penup()
t.goto(40,60)
patch()

t.penup()
t.goto(260,200)
patch()

refresh()


t.done()

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页