From 54965ded2b51ddadffcdc7ecc2be7fdeac628f75 Mon Sep 17 00:00:00 2001 From: 206530335 <1516439204@qq.com> Date: Tue, 15 Jun 2021 20:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=BE=97=E5=88=86Score?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scoreboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scoreboard.py b/scoreboard.py index dc95981..6560edb 100644 --- a/scoreboard.py +++ b/scoreboard.py @@ -44,7 +44,7 @@ class Scoreboard(): self.score_image_rect = self.score_image.get_rect() self.score_image_rect.right = self.screen_rect.right - 20 self.score_image_rect.top = 20 -def prep_high_score(self): + def prep_high_score(self): """将最高得分转换为一幅渲染的图像""" high_round_score = round(self.game_stats.high_score, -1) # 使得分为10的倍数 -1----10的倍数 -2--100的倍数 -3--1000的倍数 high_score_str = "Mscore:" + "{:,}".format(high_round_score)