
Lv.1
在 代码里使用"<"和">"判错是怎么回事 中回复
你的input方法是字符串类型,不能跟整数类型比较,换成int(input("~~~~~~"))就好了
2022-08-13T21:50:46 点赞:0
在 【海龟编辑器】意见反馈信箱(长期有效) 中回复
tkinker模块与python环境运行不同,海龟虽然可以脱离python环境运行,但还是存在代码编辑漏洞,python版本也该更新了3.11都发布测试了
2022-08-17T19:23:51 点赞: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
在 如何制作弹幕效果?(求大神) 中回复
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