属性错误:'模块'对象没有属性'mode'

2024-10-01 00:14:05 发布

您现在位置:Python中文网/ 问答频道 /正文

screen = pygame.display.mode([1000, 600])

clock = pygame.time.Clock()

p1x = 10

p1y = 250

p1score = 0

p2x = 950

p2y = 250

p2score = 0

AttributeError:“module”对象没有属性“mode”


Tags: timemodedisplayscreenpygameattributeerrormoduleclock