猫史档案馆


【Python作品分享】我的文件

用户:五年七班郝睿茗五年七班郝睿茗查看:0 回复:0 评论:0 创建时间:2023-07-15T08:37:10


【作品展示】

center_image

 

【作品介绍】

这是一个......

自己看吧

 

【作品源代码】

import turtle as t 
import random as r 

t.hideturtle()
t.speed(0)
t.bgcolor('silver')

def snow():
    t.speed(0)
    x=r.randint(-350,350)
    y=r.randint(-500,500)
    t.pencolor('white')
    t.penup()
    t.goto(x,y)
    t.pendown()
    t.setheading(90)
    for i in range(25):
        t.forward(10)
        t.up()
        t.backward(10)
        t.right(20)
        t.down()
#for i in range(10):
    #snow()
t.up()
t.pencolor('black')
t.speed(5)
t.goto(-500,100)
t.write('咏',font=('华文夏楷','100','normal'))
t.goto(-500,-100)
t.write('雪', font=('宋体', '100', 'normal'))
t.goto(-250,250)
t.write('唐', font=('隶书', '50', 'normal'))
t.goto(-250,-100)
t.write('王', font=('隶书', '50', 'normal'))
t.goto(-250, -150)
t.write('昌', font=('隶书', '50', 'normal'))
t.goto(-250, -200)
t.write('龄', font=('隶书', '50', 'normal'))
t.goto(-100, 330)
t.write('墙', font=('隶书', '50', 'normal'))
t.goto(-100, 180)
t.write('角', font=('隶书', '50', 'normal'))
t.goto(-100, 30)
t.write('数', font=('隶书', '50', 'normal'))
t.goto(-100, -120)
t.write('支', font=('隶书', '50', 'normal'))
t.goto(-100, -270)
t.write('梅', font=('隶书', '50', 'normal'))
t.goto(-100, -320)
t.write(',', font=('隶书', '50', 'normal'))
t.goto(25, 330)
t.write('凌', font=('隶书', '50', 'normal'))
t.goto(25, 180)
t.write('寒', font=('隶书', '50', 'normal'))
t.goto(25, 30)
t.write('独', font=('隶书', '50', 'normal'))
t.goto(25, -120)
t.write('自', font=('隶书', '50', 'normal'))
t.goto(25, -270)
t.write('开', font=('隶书', '50', 'normal'))
t.goto(25, -320)
t.write('。', font=('隶书', '50', 'normal'))
t.goto(150, 330)
t.write('遥', font=('隶书', '50', 'normal'))
t.goto(150, 180)
t.write('知', font=('隶书', '50', 'normal'))
t.goto(150, 30)
t.write('不', font=('隶书', '50', 'normal'))
t.goto(150, -120)
t.write('是', font=('隶书', '50', 'normal'))
t.goto(150, -270)
t.write('雪', font=('隶书', '50', 'normal'))
t.goto(150, -320)
t.write(',', font=('隶书', '50', 'normal'))
t.goto(275, 330)
t.write('为', font=('隶书', '50', 'normal'))
t.goto(275, 180)
t.write('有', font=('隶书', '50', 'normal'))
t.goto(275, 30)
t.write('暗', font=('隶书', '50', 'normal'))
t.goto(275, -120)
t.write('香', font=('隶书', '50', 'normal'))
t.goto(275, -270)
t.write('来', font=('隶书', '50', 'normal'))
t.goto(275, -320)
t.write('。', font=('隶书', '50', 'normal'))

t.done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页