详情查看阮一峰的博文。 克隆本文的配套示例库。(如果不方便使用 Git,也可以下载 zip 文件解压。) $ git clone https://github.com/ruanyf/koa-demos.git 接着,进入示例库,安装依赖。 $ cd koa-demos $ npm install 所 ...
分类:
Web程序 时间:
2020-12-17 12:46:23
阅读次数:
3
xp系统下的CreateFile, 大体框架 +++ CreateFileA -> CreateFileW( LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityA ...
分类:
其他好文 时间:
2020-12-17 12:05:23
阅读次数:
2
前言 NFS(Network File System):网络文件系统,实现网络中计算机间文件资源的共享。 NFS环境条件:①保证客户机与NFS服务器网络通信正常,②systemctl stop firewalld关闭服务器端防火墙 NFS服务器 **需要的软件** :nfs-utils 和rpcbi ...
分类:
其他好文 时间:
2020-12-17 12:04:39
阅读次数:
2
最近发现HashSet很好用,之前没有接触过,现在也并没有专门取学习,大概记录一下自己的使用。 #情况1. 添加字符串的时候,需要去重 HashSet<string> hsFileType = new HashSet<string>(); hsFileType.Add(Converts.ToStr( ...
分类:
其他好文 时间:
2020-12-17 12:00:17
阅读次数:
2
一、SVN上Maven多模块项目结构 使用eclipse导入SVN上的Maven多模块项目 Maven多模块项目所在SVN目录 二、eclipse通过SVN导入到工作空间 工作空间位于F:/HPCWorkspace 2.1 File->Import,选择从SVN检出项目 2.2 选择/新建SVN资源 ...
分类:
系统相关 时间:
2020-12-16 12:36:41
阅读次数:
4
批量修改文件名中相同的字符串#!/usr/bin/envpython#-*-coding:utf8-*-importos#获得文件夹下文件名列表file_path=r"H:\1、Workrelated\app分析范例(1)\pkts\05084-line"file_list=os.listdir(file_path)#选择要重命名的文件夹路径os.chdir(file_path)#使用replac
分类:
编程语言 时间:
2020-12-16 12:09:07
阅读次数:
4
此处的限制是以下几个部分 每一个tcp的网络连接也是一个socket文件 , 所以有文件句柄数限制 系统级:当前系统可打开的最大数量,通过fs.file-max参数可修改用户级:指定用户可打开的最大数量,修改/etc/security/limits.conf进程级:单个进程可打开的最大数量,通过fs ...
分类:
系统相关 时间:
2020-12-15 12:54:25
阅读次数:
10
1. .pth文件 (The weights of the model have been saved in a .pth file, which is nothing but a pickle file of the model’s tensor parameters. We can load t ...
分类:
其他好文 时间:
2020-12-15 12:36:48
阅读次数:
2
NO.1 Error:Can’t generate netlist outout files because the file“这里是文件目录和文件名” 解决办法:打开assignments,在之前进行的一系列设置里(settings)ENA Netlist Writer options里选择的是第 ...
分类:
其他好文 时间:
2020-12-15 12:26:53
阅读次数:
2
使进程执行某一程序。成功无返回值,失败返回 -1 int execlp(const char *file, const char *arg, ...); 借助 PATH 环境变量找寻待执行程序 参1: 程序名 参2: argv0 参3: argv1 ...: argvN 哨兵:NULL int ex ...
分类:
其他好文 时间:
2020-12-15 12:22:16
阅读次数:
3