ICode9

精准搜索请尝试: 精确搜索
  • TS2307: Cannot find module './style.module.scss' or its corresponding type declarations.2022-03-08 12:00:18

    react 在写ts脚本时,导入的模块 import style from './style.module.scss'报错:TS2307: Cannot find module './style.module.scss' or its corresponding type declarations.是因为没有进行相关声明 在react-app-env.d.ts中添加 declare module '*.module.scss' { cons

  • labelimg切换图片时数组越界2022-02-24 18:59:33

    报错如下:Traceback (most recent call last): … File “c:\users\administrator\anaconda3\envs\py38\lib\site-packages\libs\yolo_io.py”, line 125, in yolo_line_to_shape label = self.classes[int(class_index)] IndexError: list index out of range 可能原因: 控

  • 条款07:为多态基类声明virtual析构函数2022-02-21 21:30:11

             请记住: 1、polymorphic(带多态性质的)base classes应该声明一个virtual析构函数。如果class带有任何virtual函数,它就应该拥有一个virtual析构函数。 2、Classes的设计目的如果不是作为base classes使用,或不是为了具有多态性(polymorphically),就不该声明virtual析构函

  • 【Java学习】-Inheritance syntax2022-02-18 12:33:28

    You can create a main() for each one of your classes; this technique of putting a main() in each class allows easy testing for each class. Even if you have a lot of classes in a program, only the main() for the class invoked on the command line will be ca

  • 解决:ApplicationTest does not declare any static, non-private, non-final, nested classes annotated wit2022-02-18 08:31:25

    这是在运行测试类的时候提示报错信息; 原因是没有把启动类写好或者是没有配置启动类; 解决如下, 先是要正常写好启动类; 然后把启动类添加到运行的测试类,添加到这个地方:@SpringBootTest; 有两种填写方式,一种是:@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_

  • apktool2022-02-09 17:35:23

    apktool是安卓apk的反编译工具 官方地址:https://ibotpeaches.github.io/Apktool 反编译得到资源(xml,smali,image等)命令: java -jar apktool.jar d <源apk路径> -f <输出目录> /下载dex2jar***************************************/ 下载地址: https://github.com/pxb1988

  • 获取src资源文件编译后的路径(即classes路径)2022-02-04 20:02:39

    //获取src资源文件编译后的路径(即classes路径) URL resource = this.getClass().getClassLoader().getResource("template/paramTemplate.xlsx"); if (resource == null) { throw new CustomException(600, "模板文件不存在"); } String fileNamePath = resource.getPath(

  • 右键没有word?excel?ppt?注解表该改改啦2022-01-31 13:33:08

    ✿【office 2019】office2010版本以上的都可以(例如:office 2010、office 2016、office 2019) 一、快速方法解决右键没有word: 在电脑桌面右键一个.txt文本(文件名随便,文件内容如下)--》修改文件的后缀为.reg --》双击打开这个.reg文件--》点击确定写进注册表 --》在桌面右键刷新,然

  • 不下载jar包的条件下,修改jar包中的配置文件信息或某些类的代码2022-01-24 20:30:51

    不下载jar包的条件下,修改jar包中的配置文件信息或某些类的代码 奈何经历不够,某天收到任务,不下载jar包的情况下,在linux中修改jar包的配置文件参数。 一、进入jar包所在目录 用到的命令都是cd,ll 二、如果不知道要修改的文件的路径,但是知道文件名,则可以筛选列出路径 指定jar包,筛

  • win10 右键添加“在此处打开CMD"2022-01-20 11:31:43

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD] "ShowBasedOnVelocityId"=dword:00639bc8 @="在此处打开CMD" [HKEY_CLASSES_ROOT\Directory\Background\shell\openCMD\command] @="cmd.exe /

  • 使用Android Studio打包生成Jar包的方法(亲测可用)2022-01-17 18:00:30

    首先我们来说下打成jar包的分类: 1.application应用打成jar包   2.内库打成jar包 不管是那种打包jar包都得变成内库,所以当一种方法讲解了。 打jar包之前得让你的项目成内库:如何变成内库呢? 看下内库文件的图标如下图: 如下两点: 先将你项目gradle文件最上面的 Google官方文档:创建

  • 002.IDEA 中debugger step into无法进入2022-01-15 02:02:02

         遇到图示问题: 点击箭头处, 无法跳转到问号处 解决方案 取消勾选Do not step into the classes

  • JEP解读与尝鲜系列4 - Java 16 中对于 Project Valhalla 的铺垫2022-01-06 08:32:36

    这是 JEP 解读与尝鲜系列的第 4 篇,之前的文章如下: JEP解读与尝鲜系列 1 - Java Valhalla与Java Inline class JEP解读与尝鲜系列 2 - JEP 142 缓存行填充简化 JEP解读与尝鲜系列 3 - Project Loom 使用虚线程进行同步网络 IO 不阻塞的底层原理 在系列之前的第一篇文章 - JEP

  • js调用exe2022-01-04 16:58:00

    1.使用记事本(或其他文本编辑器)创建一个protocal.reg文件,并写入以下内容 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Webshell] @="URL:Webshell Protocol Handler" "URL Protocol"="" [HKEY_CLASSES_ROOT\Webshell\DefaultIcon] @="C:\\Progr

  • 2021-12-27-语义分割--FCN(2/3)--模型结构2021-12-27 11:30:01

    语义分割–FCN(2/3)–模型结构 论文下载 下载链接:Fully Convolutional Networks for Semantic Segmentation 模型结构 模型简介 FCN是在CNN的基础上进行修改(CNN网络比如AlexNet,VGGNet,GoogLeNet,ResNet…有机会再做补充,可自行查阅资料)。 FCN采用的主干网络为VGG16 假设输入的imag

  • 17 频率2021-12-24 22:02:14

    频率的使用 # 限制访问次数(IP,用户id) # 限制同一个IP一分钟只能访问3次 # 使用步骤 -第一步:写一个类,继承SimpleRateThrottle,重写get_cache_key -第二步:get_cache_key返回什么就以什么做限制,必须写类属性 scope='字符串' -第三步:配置文件中配置 'DEFAULT_THROT

  • PyTorch 对类别张量进行 one-hot 编码2021-12-19 10:02:53

    参考: -TORCH.INDEX_SELECT -PyTorch 对类别张量进行 one-hot 编码 正文 index_select torch.index_select(input, dim, index, *, out=None) → Tensor - input (Tensor) – the input tensor. - dim (int) – the dimension in which we index - index (IntTensor or LongTenso

  • The Clollections API 集合API2021-12-19 04:31:09

    The ArrarList class is in the clollection API (applictation programming interface), whick is a library provided by Java.Most of the API in java.util . This library gives the programmer access to prepackaged data staructures and the methods to manipulate t

  • .exe文件打不开恢复方法2021-12-14 22:32:09

    新建文件后缀名为.reg 粘贴以下内容(可以用任意你可以用的应用打开修改) Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.exe] @="exefile" "Content Type"="application/x-msdownload" [HKEY_CLASSES_ROOT\.exe\PersistentHandler] @="{098f2470-ba

  • yolov3实现Kitti baseline(含评估代码:easy、moderate和hard的AP计算,fps计算)(上)2021-12-13 17:33:49

    yolov3实现Kitti baseline(含评估代码:easy、moderate和hard的AP计算,fps计算) 1. 项目下载 在Linux系统下运行以下代码,下载yolov3训练代码和后面的评估代码 yolov3模型训练项目库 git clone https://github.com/bubbliiiing/yolo3-pytorch.git 评估代码项目库 git clone https:

  • JAR 和 AAR 的生成、使用方法及场景概论2021-12-11 09:05:17

    JAR 和 AAR 区别以及使用场景 ? JAR(Jave Archive) 是一种与平台无关的文件格式,允许将许多文件组合成一个压缩文件。 只包含 class 文件和清单文件,不包含资源文件。打 JAR 包,项目里面的 res 文件不可用,如果想用图片文件,可将图片放进 assets 文件打进 jar 包,但注意 jar 文件夹里面

  • 升级Windows10后,删除Windows.Old文件夹方法2021-12-04 19:00:24

    升级后,Windows.Old 文件夹很大,删除还需要各种权限。 找到一个 赋权的方法,通过右键赋值,全选只能一次 右键 赋管理员权限15个文件夹。   下面代码,另存为  注册管理员.reg, 添加到注册表。 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\runas] @="获取管理

  • 右击.py没有用idle打开2021-12-04 15:05:02

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Python.File\shell\EditwithIDLE] @="&Edit with IDLE" [HKEY_CLASSES_ROOT\Python.File\shell\EditwithIDLE\command] @="\"C:\\Python37\\pythonw.exe\" \"

  • SpringBoot整合其它框架-整合Junit2021-12-04 06:31:25

    本篇主要是为了提示整合Junit后,做测试要注意的事项 构建SpringBoot项目后,目录结构如下: 在测试包下有两个测试类,SpringbootTestApplicationTests.java与UserServiceTest.java,两个文件内容一样,不一一展示了。 SpringbootTestApplicationTests.java内容如下: 情形1:下面我们调整UserS

  • 机器学习 周志华 课后习题 7.32021-11-22 11:01:40

    7.3 试编程拉普拉斯修正的朴素贝叶斯分类器,并以西瓜数据集3.0为训练集,对“测1”样本进行判别。 代码 python代码实现。 import pandas as pd import math import numpy as np class LaplacianNB(): """ Laplacian naive bayes for binary classification problem.

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有