按类别查询搜索结果
关于关键词 的检测结果,共 888
专注的阿熊 | 2022-05-11 17:19:22 | 阅读(1210) | 评论(0)
n = 1    start = 1    end = 2    temp = 1    while n < width - 2:        n += 1        if (white[n] if arg else bl...【阅读全文】
专注的阿熊 | 2022-04-26 17:38:17 | 阅读(1390) | 评论(0)
mulpicplus = "3"     #1 for normal,2 for 4pic plus,3 for 9pic plus and so on        assert(int(mulpicplus)>=1)        if mulpicplus == "1":        ...【阅读全文】
专注的阿熊 | 2022-04-19 17:56:02 | 阅读(2240) | 评论(0)
import tkinter as tkfrom db import dbfrom tkinter import ttk# 录入类class InputFrame(tk.Frame):    def __init__(self, master=None):        super().__init__(master)        ...【阅读全文】
hsq863 | 2022-04-12 08:29:20 | 阅读(1300) | 评论(0)
专注的阿熊 | 2022-03-04 17:31:34 | 阅读(6540) | 评论(0)
#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...【阅读全文】
老男孩IT教育机构 | 2022-01-22 14:12:46 | 阅读(630) | 评论(0)
数据时代的到来,让编程语言变得更加火爆,而在众多编程语言之中,哪个语言更适合做大数据分析呢?Python可以做数据分析吗?【阅读全文】
专注的阿熊 | 2022-01-19 17:17:51 | 阅读(1330) | 评论(0)
import torchfrom torch import nnclass SiLU(nn.Module):    @staticmethod    def forward(x):        return x * torch.sigmoid(x)def get_activation(name="silu", inplace=True):   &...【阅读全文】
【Python/Ruby】 信号处与卷积
wwm | 2022-01-12 09:25:16 | 阅读(880) | 评论(0)
专注的阿熊 | 2022-01-05 17:12:59 | 阅读(1280) | 评论(0)
# -*- coding: utf-8 -*-"""一元线性回归及代码实现.ipynb"""import numpy as npimport matplotlib.pyplot as plt"""# 一、数据集"""# 读入数据集data = np.genfromtxt('data.csv', delimiter=',')'''np.genfromtxt('data.csv', delimiter=',')第一个参数是表格数组,可以简单理...【阅读全文】
mfc42d | 2022-01-04 16:13:05 | 阅读(2330) | 评论(0)
最近安装avro-python3,一直报    error: invalid command 'bdist_wheel'    ----------------------------------------  Failed building wheel for avro-python3pip install wheelpip install --upgrade setuptools【阅读全文】
老男孩IT教育机构 | 2021-12-16 14:26:36 | 阅读(520) | 评论(0)
Python中什么是闭包?本篇文章为大家带来的内容就是关于Python闭包的介绍,有需要的朋友们,可以详细阅读一下,希望对你们有用。【阅读全文】
chen45464546 | 2021-12-06 17:03:29 | 阅读(380) | 评论(0)
点击(此处)折叠或打开#!/usr/bin/python3# -*- coding:UTF-8 -*-import sysimport osimport globimport reimport subprocessdebug_printall=0 #all file and dir is printout al...【阅读全文】
专注的阿熊 | 2021-12-02 17:33:28 | 阅读(960) | 评论(0)
# 预告的添加和列表@admin.route('/preview/add', methods=['GET', 'POST'])@admin_logindef preview_add():    '''和电影添加一样的过程'''    form = PreviewForm()    if form.validate_on_submit():   &nbs...【阅读全文】
敏敏张77 | 2021-11-23 16:24:25 | 阅读(940) | 评论(0)
分享关于在爬虫过程中代理使用速度变慢的因素【阅读全文】
专注的阿熊 | 2021-11-19 17:26:26 | 阅读(2920) | 评论(0)
import osimport argparseimport cv2class StereoCamera(object):    """采集双目标定图片,按键盘【c】或【s】保存图片"""    def __init__(self, chess_width, chess_height, detect=False):        """...【阅读全文】
专注的阿熊 | 2021-10-29 17:11:39 | 阅读(1820) | 评论(0)
import datetimeimport turtlename = []def drawLine(draw):  # 绘制单段数码管    turtle.pendown() if draw else turtle.penup()    turtle.fd(40)    turtle.right(90)def drawLine1(draw):  # 绘制单段数码管1...【阅读全文】
大镇 | 2021-10-28 15:05:27 | 阅读(3030) | 评论(0)
使用pymysql查询数据库数据,由于数据库表的字段里有datatime类型字段,返回的结果形式如下:datetime.datetime(2019, 3, 19, 10, 6, 6)那么我们对结果进行json.dumps时,会报错:TypeError: Object of type datetime is not JSON serializable此时有三种处理方案一、重写json函数import datetime...【阅读全文】
专注的阿熊 | 2021-10-18 17:29:13 | 阅读(1980) | 评论(0)
import pymysqldef menu():    print("\t\t学生信息管理系统\t\t")    print("\t\t1 添加学生\t\t")    print("\t\t2 删除学生\t\t")    print("\t\t3 修改学生\t\t")    print("\t\t4 按...【阅读全文】
专注的阿熊 | 2021-10-15 17:16:05 | 阅读(2440) | 评论(0)
import torchimport numpy as npfrom torch import Tensor"""@overloaddef scatter_add(self, dim: _int, index: Tensor, src: Tensor) -> Tensor: ...@overloaddef scatter_add(self, dim: Union[str, ellipsis, None], index: Tensor, src: Tensor) -> Tensor: ...def scatter_add_(se...【阅读全文】
专注的阿熊 | 2021-10-06 16:18:01 | 阅读(1750) | 评论(0)
import timeimport reclass Segment:    # 数据成员    sentence = ""    MaxLen = 0    pos = 0    len = 0    result_MM = ""  # 存放MM分词结果...【阅读全文】