天天看點

Python pygame 簡單的pygame

#coding=utf-8

#pygame
import pygame

pygame.init()

screen=pygame.display.set_mode((800,800))
screen.fill((255,255,255))
pygame.display.set_caption('遊戲标題!')

ball=pygame.image.load('C:/Users/hou/Desktop/aa.jpg').convert()
screen.blit(ball,(10,10))

pygame.display.update()