import pygame
pygame.init()
text = ""
font_path =
font_size =
screen = pygame.display.set_mode((600,800)) #使用pygame.display.set_mode()方法创建一个指定大小的Surface对象
screen.get_rect()
myfont = pygame.font.Font(font_path,font_size)
text_surface = myfont.render(text,True,text_color,bg_color)
screen.blit(text_surface,(position_x,position_y))
while True:
pygame.display.update()
渲染只能是一行,