error:视频初始化
明明已经初始化了。。。各位有啥建议? import pygamepygame.init()
screen=pygame.display.set_mode((530, 821))
#背景
bg=pygame.image.load("./images/背景.png")
screen.blit(bg,(0,0))
# #英雄
# hero =pygame.image.load("./images/me1.png")
# screen.blit(hero,(265,600))
pygame.display.update()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit() 我这里并没有问题呀,报的什么错? 泛浮 发表于 2020-7-19 23:38
import pygame
pygame.init()
你真实图片路径时什么? 泛浮 发表于 2020-7-19 23:38
import pygame
pygame.init()
检查一下是不是路径搞错了 zltzlt 发表于 2020-7-20 06:36
我这里并没有问题呀,报的什么错?
还是没有解决,好像是新版本的python解释器对图片要求更严格了。不过程序是能运行的。
页:
[1]