猫史档案馆


勇敢小豆豆

勇敢小豆豆

Lv.1

获赞:19收藏:3浏览:37作品收藏:0
回复帖子评论
上一页1 页 / 共 1下一页

代码里使用"<"和">"判错是怎么回事 中回复

你的input方法是字符串类型,不能跟整数类型比较,换成int(input("~~~~~~"))就好了

2022-08-13T21:50:46 点赞:0

【海龟编辑器】意见反馈信箱(长期有效) 中回复

来个代码补全助手,像众多编辑器一样的github

2022-08-13T21:53:34 点赞:0

有没有人教pygame呀 中回复

上网搜寻这个网址:"https://www.pygame.org",官方网站,浏览器能翻译成中文

2022-08-13T21:57:12 点赞:0

【海龟编辑器】意见反馈信箱(长期有效) 中回复

tkinker模块与python环境运行不同,海龟虽然可以脱离python环境运行,但还是存在代码编辑漏洞,python版本也该更新了3.11都发布测试了

2022-08-17T19:23:51 点赞:0

如何练习算法 中回复

靠资料堆呗,查各种网站,同时多敲代码,多写些项目,旧的东西留着参考对比

 

2022-12-13T11:39:44 点赞:0

如何制作弹幕效果?(求大神) 中回复

可以直接复制使用,改下内容就好了

import turtle
import random

pen = turtle.Pen()
screen = turtle.Screen()
pen.hideturtle()
pen.speed(0)
screen.tracer(0)

screen.setup(500,500)
x = 0
y = 0

pen.goto(x,y)
for i in range(15):
    y = random.randint(-200,300)
    x = 250
    while x > -400:
        pen.goto(x,y)
        pen.write("这是一个弹幕",font=("bold",30))
        x -=0.08
        pen.clear()
turtle.done()

2022-12-13T11:57:09 点赞:0

【Python作品分享】Name2023新春特惠【作品秀】 中回复

欢迎大家继续喵name的相关产品

2022-12-15T11:36:55 点赞:0

如何制作弹幕效果?(求大神) 中回复

import turtle
import random

pen = turtle.Pen()
screen = turtle.Screen()
pen.hideturtle()
pen.speed(0)
screen.tracer(0)

screen.setup(500, 500)
x = 0
y = 0
def text1():
    value = screen.textinput("弹幕内容询问","请输入弹幕内容")
    return value

pen.goto(x, y)
for i in range(15):
    text = text1()
    y = random.randint(-200, 300)
    x = 250
    pen.goto(x, y)
    while x > -400:
        pen.goto(x, y)
        pen.write(text, font=("bold", 30))
        x -= 0.08
        pen.clear()
turtle.done()

2022-12-16T08:54:26 点赞:0

python下载 中回复

www.python.org

downloads

windows or ohther

catch the version

选带installer和**bit的那一项

2023-02-11T21:23:35 点赞:0