发布时间:2022-06-22 17:17:04
"""贪吃蛇小游戏"""import randomimport sysimport timeimport pygamefrom pygame.locals import *from collections import dequeSCREEN_WIDTH = 600SCREEN_HEIGHT = 480SIZE = 20def print_text(screen, font, x, y, text, fcolor=(255, 255, 255)): &n.........【阅读全文】
发布时间:2022-06-17 17:11:21
from sklearn.decomposition import PCAimport numpy as npfrom sklearn.svm import SVCimport matplotlib.pyplot as pltfrom sklearn.model_selection import train_test_splitfrom sklearn.decomposition import PCAfrom sklearn.metrics import accuracy_scorefrom sklearn.linear_model .........【阅读全文】
发布时间:2022-06-15 17:17:32
import pygamefrom pygame.locals import *import pygameimport sysimport asyncioimport timeimport randomclass Player(pygame.sprite.Sprite): #粽子对象 def __init__(self): &nbs.........【阅读全文】
发布时间:2022-06-14 17:18:05
if __name__ == '__main__':""" opt模型主要参数解析: --weights:初始化的权重文件的路径地址 --cfg:模型yaml文件的路径地址 --data:数据yaml文件的路径地址 --hyp:.........【阅读全文】
发布时间:2022-06-13 11:30:09
#!/usr/bin/env python# -*- coding:utf-8 -*-import cv2import numpy as npfile=r"src.jpg"# step1:读取照片img = cv2.imread(file)# step1.2:缩放图片()img = cv2.resize(img, None, fx=1.0, fy=1.0)rows, cols, channels = img.shape# 展示图片cv2.imshow("original...",.........【阅读全文】