发布时间:2022-06-09 16:53:07
from collections import namedtupleChessman = namedtuple('Chessman', 'Name Value Color')Point = namedtuple('Point', 'X Y')BLACK_CHESSMAN = Chessman('黑子', 1, (45, 45, 45))WHITE_CHESSMAN = Chessman('白子', 2, (219, 219, 219))offset = [(1, 0), (0, 1), (1, 1), (1, -1)]class Ch.........【阅读全文】
发布时间:2022-06-07 17:18:20
import pygameclass Bg(pygame.sprite.Sprite): def __init__(self): super(Bg, self).__init__() bg_small = pygame.image.load('bg.png').convert_alpha() &nb.........【阅读全文】
发布时间:2022-06-02 16:50:39
import numpy as npimport PILimport PIL.Imageimport scipyimport scipy.ndimageimport dlibdef get_landmark(filepath, predictor): """get landmark with dlib :return: np.array shape=(68, 2) """&n.........【阅读全文】
发布时间:2022-06-01 17:13:50
import requests # 发送网络请求模块import jsonimport pprint # 格式化输出模块import pandas as pd # 数据分析当中一个非常重要的模块from pyecharts import options as optsfrom pyecharts.charts import Bar,Lin.........【阅读全文】