1 import pygame
2 pygame.init()
3 screen = pygame.display.set_mode((640,480))
4 screen.fill((151, 255, 255))
5 pygame.draw.circle(screen, (255, 240, 245), (640//2, 480//2), 480//2)
6 # circle()的参数必须是整数,所以使用//向下取整
7 pygame.display.flip()
1 import pygame
2 pygame.init()
3 screen = pygame.display.set_mode((640,480))
4 screen.fill((151, 255, 255))
5 pygame.draw.circle(screen, (255, 240, 245), (640//2, 480//2), 480//2)
6 # circle()的参数必须是整数,所以使用//向下取整
7 pygame.display.flip()
转载于:https://www.cnblogs.com/xiyu714/p/9031497.html