【问题标题】:how can i fix attribute error in python pygame? [closed]如何修复 python pygame 中的属性错误? [关闭]
【发布时间】:2021-06-05 08:23:16
【问题描述】:

我在 pygame 中遇到属性错误

【问题讨论】:

    标签: python pygame attributeerror


    【解决方案1】:

    嘿,因为它写在你的错误消息中,你已经写了 pygame.display.set.caption('fist game') 这对于第一次尝试来说已经足够接近了,所以恭喜! 但你需要知道“set”本身并不是一个属性本身 实际代码是,如果您想继续使用这种代码结构: pygame.display.set_caption('第一场比赛') 看到那个_?是的,实际的 att 是 set_caption 所以是的,只是一个小错误。 希望我有帮助! :D

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-14
      • 1970-01-01
      • 2020-02-03
      • 2021-12-23
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 2014-04-11
      相关资源
      最近更新 更多