📅  最后修改于: 2022-03-11 14:45:27.618000             🧑  作者: Mango
keys=pygame.key.get_pressed()
if keys[K_LEFT]:
location-=1
if location==-1:
location=0
if keys[K_RIGHT]:
location+=1
if location==5:
location=4