这段代码不接受输入,我不知道为什么这几天让我感到压力很大,如果可以的话请帮助我
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
break
if event.type == pygame.KEYDOWN:
for x in range (0, 29):
if event.key == keys[b]:
if keys[b] == pygame.K_TAB:
now = not now
break
break
if keys[b] == pygame.K_BACKSPACE:
user = lett[b]
break
break
else:
user += lett[b]
break
break
else:
b += 1