Explorar el Código

Update 图形用户界面和游戏开发.md

TinaryTree hace 7 años
padre
commit
199eb00768
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Day01-15/Day10/图形用户界面和游戏开发.md

+ 1 - 1
Day01-15/Day10/图形用户界面和游戏开发.md

@@ -264,7 +264,7 @@ class Ball(object):
             if distance < self.radius + other.radius \
                     and self.radius > other.radius:
                 other.alive = False
-               a self.radius = self.radius + int(other.radius * 0.146)
+                self.radius = self.radius + int(other.radius * 0.146)
 
     def draw(self, screen):
         """在窗口上绘制球"""