通过pygame 画坐标系 、画图、画线、画点、写字、截图(代码)
import os
import sys
import pygame
class Draw:
def __init__(self, x, y):
self.x = x
self.y = y
pygame.init()
pygame.display.set_caption('hello world')
self.screen = pygame.display.set_mode([self.x, self.y])
.
原创
2020-06-24 00:02:01 ·
2979 阅读 ·
0 评论