import pygame
from threading import *
from pygame.locals import *
def main():
screen=pygame.display.set_mode((350,500),0,depth=32)
background=pygame.image.load('./pictu/background.png')
pygame.display.set_caption('飞机大战')
screen.blit(background, (0, 0))
pygame.display.update()
pass
if __name__ == '__main__':
main()
Fatal Python error: pygame_parachute: (pygame parachute) Segmentation Fault
Python runtime state: initialized
Current thread 0x0000b050 (most recent call first):
File "D:\pythonmuzhou\pythonprojectplane\text.py", line 16 in main
File "D:\pythonmuzhou\pythonprojectplane\text.py", line 20 in <module>
Extension modules: pygame.base, pygame.constants, pygame.rect, pygame.rwobject, pygame.surflock, pygame.color, pygame.bufferproxy, pygame.math, pygame.surface, pygame.display, pygame.draw, pygame.event, pygame.imageext, pygame.image, pygame.joystick, pygame.key, pygame.mouse, pygame.time, pygame.mask, pygame.pixelcopy, pygame.transform, pygame.font, pygame.mixer_music, pygame.mixer, pygame.scrap, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pygame.pypm, pygame._freetype (total: 40)
可能是Pygame模块的问题,我在电脑上试过,没有报错