我需要一个音频文件来启动和关闭一段时间。我通过 os.startfile 运行它,但你不能通过它关闭它。有没有其他选择?
主页
/
user-506624
NikeTos's questions
我有路径:C:\Users\USERNAME\Desktop\BlenderKit\bin\python\lib\os\images。有必要使用自动确定的用户名代替 USERNAME。
例如,我在路径上有一个程序:/C:\Users\User\Desktop\123\bin\python\scripts。它有一个模块可以计算程序所在的目录。我需要回到文件夹:/C:\Users\User\Desktop\123\bin\python 并在那里打开图像文件夹。应该使用哪个模块来下降到较低的目录?
我想让文本以间隔显示。问题是当你不使用 def 函数时,会显示整个文本,而不是部分。def 函数由于某种原因不起作用。
one = font.render(text1, 1, (12, 140, 0, 1))
two = font.render(text2, 2, (12, 140, 0, 1))
three = font.render(text3, 3, (12, 140, 0, 1))
while True:
screen.fill((0, 0, 0))
for click in pygame.event.get():
if click.type == pygame.QUIT:
pygame.quit()
time.sleep(0.10)
pygame.display.set_icon(pygame.image.load('111.jpg'))
screen = pygame.display.set_mode((1920, 1020))
pygame.display.set_caption('Внимание!!!')
messagebox.showerror('аха', ' dd')
def lol():
pygame.time.delay(500)
screen.blit(one, (0, 50))
lol()
def kek():
pygame.time.delay(700)
screen.blit(two, (0, 100))
kek()
def chebyrek():
pygame.time.delay(900)
screen.blit(three, (0, 150))
chebyrek()
pygame.display.update()