我的代码应该检查我的鼠标位置然后打印它,但它只检查一次,有什么问题?
import pygame, sys, time
from pygame.locals import *
pygame.init()
WINDOW_WIDTH = 1000
WINDOW_HEIGHT = 600
surface = pygame.display.set_mode ((WINDOW_WIDTH, WINDOW_HEIGHT),0,32)
pygame.display.set_caption ('get POS')
while True:
amntTuple = pygame.mouse.get_pos()
print (amntTuple)
time.sleep(0.2)