浏览器运行js步骤 原仓库 Podium = {}; Podium.keydown = function(k) { var oEvent = document.createEvent('KeyboardEvent'); // Chromium Hack Object.defineProperty(o ...
分类:
其他好文 时间:
2021-06-10 17:56:40
阅读次数:
0
三角形模板 const int N = 1e5 + 50; const ld PI = acos(-1.0); const ld eps=1e-8; int sgn(ld x) { if(fabs(x)<eps)return 0; return x<0?-1:1; } struct Point { ...
分类:
其他好文 时间:
2021-06-10 17:53:30
阅读次数:
0
场景: WPF界面调用C++动态库,由于库的名称不是固定的,因此没法用DllImport,想到了用windows api中的LoadLibrary,一番折腾后调用成功 关键代码: [DllImport("kernel32.dll")] private extern static IntPtr Loa ...
分类:
编程语言 时间:
2021-06-10 17:47:35
阅读次数:
0
在学习python协程的过程中,结合生成器函数,实现了新浪新闻的深度爬取,深度爬取可以一边获得新生成的url,一边向URL发出请求,下面上代码 import aiohttpfrom lxml import etreeimport csvimport asyncioimport osfrom logu ...
分类:
其他好文 时间:
2021-06-10 17:45:03
阅读次数:
0
数据类型 强类型语言 安全性高,速度慢 要求变量都必须先定义后才能使用 弱类型语言 Java数据类型分为 基本类型 引用类型 八大基本数据类型(primitive type) //整数Itint num = 1;//最常用byte num2 = 20;short num3 = 30;long num ...
分类:
其他好文 时间:
2021-06-10 17:40:26
阅读次数:
0
在http 协议中,post 提交的数据需放在消息主体的,但协议并没有规定必须使用什么编码方式,从而导致了提交方式的不同。服务端根据请求同一种的 Content-Type 字段来获取请求中消息主体是用何种方式进行编码,再对消息主体进行解析。 具体的编码方式有: - application/x-www ...
分类:
其他好文 时间:
2021-06-10 17:37:22
阅读次数:
0
依赖的包为reflect。 Kind():返回最基础的类型。 type Kind uint const ( Invalid Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Floa ...
分类:
其他好文 时间:
2021-06-09 15:36:10
阅读次数:
0
无线局域网数据包捕获与分析 实验要求与目的 熟悉常见的无线测量根据的特点和用途 学习WIndows上的Wireshark数据包捕获与分析 学习linux上的Wireshark和Kismet数据包捕获与分析 ISO五层模型 Frame 125172: 物理层数据帧概况。 Ethernet II, Sr ...
分类:
其他好文 时间:
2021-06-09 15:25:06
阅读次数:
0
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:
编程语言 时间:
2021-06-09 10:31:41
阅读次数:
0
一般用法: 1.在XMAL中ContentControl定义一个ContentRegion, 如 <ContentControl prism:RegionManager.RegionName="ContentRegion" /> 2.在XMAL对应的.cs文件构造函数中discovery publi ...
分类:
其他好文 时间:
2021-06-08 23:45:49
阅读次数:
0