ICode9

精准搜索请尝试: 精确搜索
  • lo4j2 加载与配置2022-05-31 09:32:32

    log4j2 加载外部的日志配置文件 ,两种方式 ,java 代码如下 1. 方式1 import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.LoggerContext; String currentPath = System.getProperty("user.dir"); System.setProperty("configFiles", current

  • Qt QDir::currentPath()和QAppllication::appllicationDirPath()用法区别2021-01-21 13:35:10

    最近需要动态获取exe文件的路径信息,通过查找看到了QDir::currentPath(),但是,在后来调试程序的时候出现了错误,这个路径和我想象中的不一致。经过多次尝试和调试,总结如下:         【 调试环境:vs2010+ QT】 1.QDir::currentPath()          (1)在vs2010中,之间按F5调试,QDir::c

  • C++ 枚举资源2020-12-05 22:03:21

    // ResourceManager.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <Windows.h> #include <atlconv.h> #define LANGUAGEID 1033 char deadCode[] = "0xDEADC0DE"; unsigned int error = 0; BOOL EnumNames(HANDLE hModule, LPCT

  • python对图片进行水平 垂直翻转及按一定角度旋转2020-03-14 20:03:59

    python对图片进行翻转 from PIL import Image import os import os.path rootdir = r'C:\Users\wy\Desktop\kd' #读取文件夹位置 for parent, dirnames, filenames in os.walk(rootdir): for filename in filenames: print('parentis :' + parent) print('f

  • C#链接excel2020-02-21 22:37:11

    string FileFullPath = "d:\\test.mdb";             string strConn = "Provider=Microsoft.Ace.OleDb.12.0;" + "data source=" + FileFullPath + ";Extended Properties='Excel 12.0; HDR=NO; IMEX=1'";            

  • c++获取当前进程所在位置2019-12-20 10:54:43

    char buffer[MAX_PATH];GetModuleFileNameA(NULL, buffer, MAX_PATH );string::size_type pos = string( buffer ).find_last_of( "\\/" );string currentPath = string(buffer).substr( 0, pos);CHAR fullPath[MAX_PATH];sprintf(fullPath ,"%s\\%s"

  • 检测代码潜在bug和质量之SonarQube2019-10-29 17:56:31

    参数使用 项目分析参数可以在多个地方设置,继承关系如下: 全局分析参数,通过Web UI设置,作用于所有项目(配置–>通用–>通用中设置) 项目分析参数,通过WebUI设置,覆盖全局参数(在项目级别的配置–>设置中设置) 项目分析参数,定义在项目的分析设置文件(如:sonar-project.properties)和分析器

  • 【剑指offer】二叉树中和为某一值的路径2019-09-03 13:40:42

    题目描述 输入一颗二叉树的根节点和一个整数,打印出二叉树中结点值的和为输入整数的所有路径。路径定义为从树的根结点开始往下一直到叶结点所经过的结点形成一条路径。(注意: 在返回值的list中,数组长度大的数组靠前) 题解 import java.util.ArrayList; /** public class Tree

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

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

ICode9版权所有