猫史档案馆


哪里错了???

用户:cogmohcogmoh查看:0 回复:3 评论:0 创建时间:2022-05-21T12:44:57


编辑端:

import pygame
  pygame.init() keep_going = True
X = 0 Y = 0 while keep_going:     screen = pygame.display.set_mode([800, 800])     for event in pygame.event.get():         if(event.type == pygame.QUIT):             keep_going = False     screen.blit(pic,(x,y))_________________line 17     pygame.display.update()     x = (x + 1)     y = (y + 1)   t = (255, 255, 255) screen.fill(t) pygame.quit()   输出显示 nameEorror:name "pic" is not defined???   说eorror在17行___  


回复

上一页1 页 / 共 1下一页
CoderorangesoftCoderorangesoft

pic要加双引号

点赞1


评论


申浩南申浩南

pic没定义

点赞0


评论


cogmohcogmoh

imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E8%B0%A2%E8%B0%A2%E8%80%81%E6%9D%BF.gif"alt="emotion_编程猫_谢谢老板"

点赞0


评论