Windows API学习 以下都是我个人一些理解,笔者不太了解windows开发,如有错误请告知,非常感谢,一切以microsoft官方文档为准。 https://docs.microsoft.com/en-us/windows/win32/api/ VirtualAlloc() https:// ...
1.错误信息∶{"Message" : "必须至少有一个对象实现lComparable。" } 错误原因:lambda表达式多字段排序 OrderBy(m => new {m.CategoryType, m.Sort}) 正确写法:OrderBy(m => m.CategoryType).ThenB ...
分类:
其他好文 时间:
2020-12-23 12:14:26
阅读次数:
0
Codeforces Round #690 (Div. 3) A - Favorite Sequence 按着题意读入, 顺序输出完事 int main() { IOS; for (cin >> _; _; --_) { cin >> n; rep (i, 1, n) { if (i <= (n + ...
分类:
其他好文 时间:
2020-12-21 12:02:47
阅读次数:
0
突然系统不能使用了,可以看一下是不是磁盘占满 了 首先登录到服务器 我的是mac 直接登录 使用ssh登录ssh -t root@104.224.166.36 -p27988 windows系统也可以使用 xshell来登录 命令行 df df -lh清楚磁盘使用情况 df -a 是全部的文件系统的 ...
分类:
系统相关 时间:
2020-12-19 12:54:28
阅读次数:
2
我想实现读取一个本地的xlsx文件(task_list.xlsx)然后显示在网页上, 一开始选择的方法是建个express server, 通过发送axios请求来实现, 但是觉得只是读取一个本地文件还要搞个server太复杂了, 最终还是通过"xlsx"模块 + axios实现了读取本地文件, 无 ...
分类:
Web程序 时间:
2020-12-19 11:54:18
阅读次数:
2
1、显示统计占用系统内存最多的进程,并排序。ps-eopid,ppid,cmd,%mem--sort=-%mem2、编写脚本,使用for和while分别实现192.168.0.0/24网段内,地址是否能够ping通,若ping通则输出"success!",若ping不通则输出"fail!"#for循环版本1#!/bin/bashNET=192.168.0fo
分类:
系统相关 时间:
2020-12-18 13:10:27
阅读次数:
4
折半搜索,$O(n)$型枚举,时间复杂度(\(O(n^2logn)\)) const int N=4010; int a[N],b[N],c[N],d[N]; int ab[N*N]; int n; int main() { cin>>n; for(int i=0;i<n;i++) cin>>a[i ...
分类:
其他好文 时间:
2020-12-18 12:31:13
阅读次数:
2
PowerShell Crescendo是一个框架,可以快速地把【linux本机命令】封装成PowerShell cmdlet,输出属性,支持Sort-Object Where-Object过滤。 而与平台无关。win,linux通用。 ...
分类:
系统相关 时间:
2020-12-18 12:19:29
阅读次数:
3
一、redis redis是一个key-value存储系统。和Memcached类似,它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型)。这些数据类型都支持push/pop、add/r ...
分类:
其他好文 时间:
2020-12-17 12:34:39
阅读次数:
2
static int fd; static uint64_t buffer; static void threadFunc(void) //线程函数 { int t; eventfd_t value; int ret = -1; while(1) { #if 0 t = read(fd,&buffe ...
分类:
其他好文 时间:
2020-12-16 12:45:24
阅读次数:
2