用户:编程之刃查看:0 回复:0 评论:0 创建时间:2021-12-01T21:21:16
【作品展示】

【作品介绍】
hh
【作品源代码】
import pygame,sys
from pygame.locals import*
pygame.init()
pygame.display.set_caption('迷你世界')
screen = pygame.display.set_mode((600,500))
myfont = pygame.font.Font(None,100)
white = 255,255,255
blue = 0,0,255
textImage = myfont.render('hhh',True,blue)
while True:
for event in pygame.event.get():
if event.type in (QUIT,KEYDOWN):
sys.exit()
screen.fill(white)
screen.blit(textImage,(250,250))
pygame.display.update()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn