我刚刚在pygame中制作了一个游戏,我的语法错误无效,有什么帮助吗?
import pygame
import random
pygame.font.init()
NP = false
MP = false
Font = pygame.font.SysFont("", 100)
Font2 = pygame.font.SysFont("", 300)
Font3 = pygame.font.SysFont("",55)
ann = font2.render("Press space to start", 1, (255, 255, 255)
NPFont1 = Font3.render ("Normal", 1, (0,0,0)
NPFont2 = Font3.render ("Play", 1, (0,0,0)
NPFont1 = Font3.render ("Single", 1, (0,0,0)
NPFont2 = Font3.render ("Play", 1, (0,0,0)
答案 0 :(得分:0)
缺少许多括号。
ann = font2.render("Press space to start", 1, (255, 255, 255))
NPFont1 = Font3.render ("Normal", 1, (0,0,0))
NPFont2 = Font3.render ("Play", 1, (0,0,0))
NPFont1 = Font3.render ("Single", 1, (0,0,0))
NPFont2 = Font3.render ("Play", 1, (0,0,0))