导入Tkinter 模块:. import tkinter as tk. C#. Copy. 创建主窗口:. root = tk ... MessageBox(f"游戏结束!得分: {self.score}", "游戏结束") self.Close ...
確定! 回上一頁