发布时间:2022-05-11 17:19:22
n = 1 start = 1 end = 2 temp = 1 while n < width - 2: n += 1 if (white[n] if arg else bl.........【阅读全文】
发布时间:2022-05-09 23:45:58
import osimport pygame as pgkeybinding = { 'action':pg.K_s, 'jump':pg.K_a, 'left':pg.K_LEFT, 'right':pg.K_RIGHT, 'down':pg.K_DOWN}class Control(object): &nbs.........【阅读全文】
发布时间:2022-05-06 17:49:29
# -*- coding: utf-8 -*-# @Time : 2022/3/30 14:44# @Author : Orange# @File : gm_trigonometric.pyfrom decimal import *import mathclass GM_trig(): def __init__(self, X0, X0_hat, L): ''' &nbs.........【阅读全文】
发布时间:2022-05-05 17:33:30
import osimport cv2import sysimport timeimport numpy as npimport face_recognitionfrom PyQt5.QtGui import QPixmapfrom PyQt5.QtWidgets import QApplication,QLabel# 全局变量path = './data' # 人像存储路径showflag = True # 是否实时显示图像# 利用PyQ.........【阅读全文】
发布时间:2022-05-03 12:09:34
# 创建一个代表玩家的AIai_players = [0, 0]ai_players[0] = self.user_positionai_players[1] = DeepAgent(self.user_position, self.card_play_model_path_dict[self.user_position])# 初始化游戏环境self.env = GameEnv(ai_players)# 游戏开始self.start()def start(self): .........【阅读全文】