diff --git a/my_Tetris.py b/my_Tetris.py index 8711234..1abe5c4 100644 --- a/my_Tetris.py +++ b/my_Tetris.py @@ -71,8 +71,7 @@ while True: current_pos.append(pos) # 取出所有小方块的行、列位置,计算坐标,绘制俄罗斯方块 for cube in current_pos: - pygame.draw.rect(screen, color, - (cube[1] * 20-20, cube[0] * 20-20, 20, 20), 0) + pygame.draw.rect(screen, color,(cube[1] * 20-20, cube[0] * 20-20, 20, 20), 0) pygame.draw.rect(screen, (255, 255, 255), (cube[1] * 20-20, cube[0] * 20-20, 20, 20), 1) # 得分