先看看多少代码量 import os file_types = ['py', 'html', 'css', 'js', ] def count_code_nums(file): """获取单个文件的行数 """ with open(file, mode='rb') as f: return len( ...
分类:
其他好文 时间:
2021-03-29 12:13:33
阅读次数:
0
const { resolve } = require("path") const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { fil ...
分类:
Web程序 时间:
2021-03-29 12:08:56
阅读次数:
0
我不是标题党, 但我确实很惊讶, 原来反汇编真的有可能作为辅助的调试手段. 我运行一个很小的mpi程序(奇偶排序). 得到了以下的报错: 1380 PA1$mpirun -n 2 ./a.out [parallels-Parallels-Virtual-Platform:15012] *** Pro ...
分类:
其他好文 时间:
2021-03-29 12:06:47
阅读次数:
0
将http请求转发至https的URL 重定向 Redirect [status] URL-path URL status状态: Permanent: 返回永久重定向状态码 301 Temp:返回临时重定向状态码302. 此为默认值 示例: Redirect temp / https://www.m ...
分类:
Web程序 时间:
2021-03-29 11:49:48
阅读次数:
0
用spyder运行正常,程序上传到服务器,添加计划任务,运行报错:ModuleNotFoundError: No module named 'selenium',实际上已经安装了。 搜索一番,有人说程序前面加上: import sys import os curPath = os.path.absp ...
分类:
其他好文 时间:
2021-03-29 11:49:17
阅读次数:
0
node和python默认的rsa加密方式是不一样,要调整一下。 node代码: const fs = require('fs'); const NodeRSA = require('node-rsa'); const path = require('path').resolve(); const ...
分类:
编程语言 时间:
2021-03-29 11:41:58
阅读次数:
0
//在一定时间内,等待某个事件//小于currentStatus的标志位都是true,才能继续向下,不然就报错 // status 状态表,currentStatus 当前线程状态位置,timeout 超时时间,funcSuccess 规定时间内要执行的函数,funcError 超过规定时间后要执行 ...
分类:
编程语言 时间:
2021-03-29 11:38:22
阅读次数:
0
1.路径配置的分类 在nginx中,一共有4种不同的路径配置方法 = - Exact match ^~ - Preferential match ~ && ~* - Regex match no modifier - Prefix match #路径完全一样则匹配 location = path { ...
分类:
其他好文 时间:
2021-03-26 15:34:02
阅读次数:
0
public async Task CreateFileByHtmlAsync(ApiDBContent dbContext, WebPageParam setting, int tryCount = 0) { string pdfPath = Path.Combine(setting.FilePa ...
分类:
其他好文 时间:
2021-03-26 15:25:18
阅读次数:
0
Description:Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to t ...
分类:
其他好文 时间:
2021-03-18 14:37:13
阅读次数:
0