function_exists ( string $function_name ) : bool 在已经定义的函数列表(包括系统自带的函数和用户自定义的函数)中查找 function_name。 ...
分类:
其他好文 时间:
2019-12-28 15:55:58
阅读次数:
57
idea中文件单行注释默认在行首位置 修改方法:进入File-->Settings-->Editor-->Code Style-->Java,修改Code Generation 去掉Line comment at first column前的对勾,选中Add a space at comment s ...
分类:
其他好文 时间:
2019-12-27 12:00:18
阅读次数:
107
Element类型 除了Document类型之外,Element类型就要算是Web编程中最常用的类型了。Element节点具有以下特征; parentNode可能是Document或Element; 其子节点可能是Element、Text、Comment、ProcessingInstruction、 ...
分类:
其他好文 时间:
2019-12-27 00:27:30
阅读次数:
79
使用 from rest_framework.throttling import AnonRateThrottle from rest_framework.generics import ListAPIView,CreateAPIView,UpdateAPIView,DestroyAPIView,R ...
分类:
其他好文 时间:
2019-12-26 19:12:13
阅读次数:
92
cheerio第三方的模块:cheerio是jquery核心功能的一个快速灵活而又简洁的实现,主要是为了用在服务器端需要对DOM进行操作的地方 用http模块做爬虫爬取网页的新闻: const http =require("http"); const fs =require("fs"); const ...
分类:
Web程序 时间:
2019-12-25 13:20:07
阅读次数:
86
代码: C++ include include pragma comment(lib,"psapi.lib") void GetPathByProcessId(DWORD dwPid) { //使用PROCESS_ALL_ACCESS 需要提权这里我直接扣出来的.提权代码看另一篇. HANDLE h ...
string常用函数 1、构造函数 string(const char *s); //用c字符串s初始化 string(int n,char c); //用n个字符c初始化 string类还支持默认构造函数和复制构造函数,如string s1;string s2="hello" 2、删除 erase ...
分类:
其他好文 时间:
2019-12-23 22:47:48
阅读次数:
103
在Elasticsearch中,Join可以让我们创建parent/child关系。Elasticsearch不是一个RDMS。通常join数据类型尽量不要使用,除非不得已。那么Elasticsearch为什么需要Join数据类型呢? 在Elasticsearch中,更新一个object需要root ...
分类:
其他好文 时间:
2019-12-23 16:44:15
阅读次数:
85
本文总结LeetCode上有关双指针、位运算和分治法的算法题,推荐刷题总数14道。具体考点分析如下图: 一、双指针 1.字符串和数组问题 题号:424. 替换后的最长重复字符,难度中等 题号:828. 独特字符串,难度困难 题号:923. 三数之和的多种可能,难度中等 2.实际场景应用问题 题号:8 ...
分类:
其他好文 时间:
2019-12-22 16:45:47
阅读次数:
103
springboot+k8s+抛弃springcloud.eureka https://www.cnblogs.com/lori/p/12048743.html springboot开发微服务框架一般使用springcloud全家桶,而整个项目都是容器化的,通过k8s进行编排,而k8s自己也有服务发 ...
分类:
编程语言 时间:
2019-12-22 10:28:32
阅读次数:
182