发布时间:2022-03-10 17:16:45
# 创建一个代表玩家的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): .........【阅读全文】
发布时间:2022-03-09 17:16:35
def GamingInterface(num_player, screen): # 初始化 pygame.mixer.music.load(cfg.SOUNDPATHS['Cool Space Music']) pygame.mixer.music.set_volume(0.4) pygame.mixer.music.play(-1) &n.........【阅读全文】
发布时间:2022-03-08 17:23:20
# 导入import osimport timeimport tkinterimport tkinter.filedialogimport threadingimport pygame # piproot = tkinter.Tk()root.title('音乐播放器')root.geometry('460x600+500+100')root.resizable(False,False) # 不能拉伸folder =''res = [].........【阅读全文】
发布时间:2022-03-04 17:31:34
#include <opencv2/opencv.hpp>#include <opencv2/dnn.hpp>#include <iostream>#include <fstream>Mat cv::dnn::blobFromImage(InputArray image,double scalefactor = 1.0,const Size & size = Size(),const Scalar & mean = Scalar(),bool swapRB = false,bool crop = f.........【阅读全文】
发布时间:2022-02-25 17:25:34
import numpy as npimport matplotlib.pyplot as pltfrom matplotlib import animationm = [1.33e20,3.98e14,4.9e12]x = np.array([0,1.5e11,1.5e11+3.8e8])y = np.array([0.0,0,0])u = np.array([0.0,0,0])v = np.array([0,2.88e4,2.88e4+1.02e3])fig = plt.figure(figsize=(12,12)).........【阅读全文】