#2
风卷浪起2021-11-22 21:25
|
import pygame
import sys
from pygame.locals import *
def run_game():
pygame.init()
screen = pygame.display.set_mode((600, 400))
pygame.display.set_caption("TEXTURE")
bg_color = (230, 230, 230)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
screen.fill(bg_color)
pygame.display.update()
run_game()
以上
求助各位大佬,为什么screen的背景色总是黑色