求问
Aueiue
这个作者很懒,什么都没留下…
展开
-
AttributeError: 'Scoreboard' object has no attribute 'score'
这score是指的什么?怎么解决?求帮助。。。谢谢import pygame.fontclass Scoreboard(): """显示得分信息的类""" def __init__(self, ai_settings, screen, stats): """初始化显示得分涉及属性""" self.screen = screen ...原创 2020-03-03 22:47:15 · 4076 阅读 · 17 评论 -
已解决:TypeError: Button() takes no arguments 这是哪里错了?实参怎么没有?
import pygamefrom pygame.sprite import Groupfrom settings import Settingsfrom game_stats import GameStatsfrom ship import Shipimport game_functions as gffrom button import Buttondef run_game(...原创 2020-02-28 21:48:19 · 2220 阅读 · 0 评论