看了 https://blog.csdn.net/qq_18250439/article/details/80872425 的說明,才明白為什么錯了。
當使用Python3-pygame時出現TypeError: argument 1 must be 2-item sequence, not int提示
原始代碼:
screen =pygame.display.set_mode(SCREEN_WIDTH,SCREEN_HEIGHT)
應改為:
screen =pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT),0,32)
或者
screen =pygame.display.set_mode([SCREEN_WIDTH,SCREEN_HEIGHT])
感謝大神。
