标签:大神 tps pygame 代码 article display argument not details
看了 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])
感谢大神。
argument 1 must be 2-item sequence, not int
标签:大神 tps pygame 代码 article display argument not details
原文地址:https://www.cnblogs.com/xyzpeng/p/10545331.html