XOR
文本时间批量转秒
问题:文本时间批量转秒 函数解决: =IF(ISNUMBER(FIND("时",A2)),SUBSTITUTE(A2,"小",),"0时"&A2)*86400 智能分析:数据》智能分析 分析结果乘以86400 ......
SQL Server Index-索引
SQL Server索引基本上项目中都会用到,但是很多时候使用不规范甚者滥用,原因很简单就是对SQL Server 索引原理了解不清导致的。本篇文章旨在以详细通俗的方式介绍SQL Server索引。 索引是什么? 索引是与表或试图关联的磁盘上的结构,可以加快从表或试图中检索行的速度。索引包含由表或试 ......
创建自签名证书对Microsoft App进行身份验证
Azure Active Directory(Azure AD)支持两种类型的身份验证:基于Password的身份验证和基于Certificate的身份验证。虽然可以通过Azure Portal或者Microsoft API(Microsoft Graph)创建Password,但长期保护Passw ......
题解 P9384【[THUPC 2023 决赛] 着色】
有趣的构造题! 不存在三元环或五元环颜色相同看起来很诈骗,不妨加强一下问题,使得不存在奇环颜色相同。也就是说,每种颜色构成一个二分图。 又发现颜色数 $10=\lceil\log_21000\rceil$,其中 $1000$ 是 $n$ 的上限。因此,我们可以自然地想到使用二进制位为 $0$ 或为 ......
一、win32com基础
from win32com.client import Dispatch client = Dispatch('kwps.Application') #client = Dispatch('word.Application') client.Visible = 1 # or True d1 = cl ......
随手买web端使用说明
项目背景:当今出行方案中,乘坐出租车以及网约车已成为一种主流,尤其是网约车,近几年随着规范化的网约车制度建立,网约车已成为正式的职业,按照最新的出行数据统计我国共有17家网约车平台订单量在30万单以上,这些出行订单均代表着一位乘车出行的乘客。这种出行方式,方便快捷,有很高的可定制性,同时,在车内较为 ......
linux selenium chrome_options.add_argument()
from pyvirtualdisplay import Display import undetected_chromedriver as uc from selenium.webdriver.common.keys import Keys from selenium.webdriver.comm ......
将10进制数转换为16进制的字符
>将十进制数转换为十六进制数,dec2hexa:将十进制数转换为十六进制数 ```c #include void dec2hexa(int n) { int i=0,d=n; int m=0,t=0; char hexa[64]; char *hmap="0123456789ABCDEF"; whi ......
多表数据重组(Power Query)
问题:多个如下图结构的表数据重组 效果如下: 数据整理: let 源 = Excel.Workbook(File.Contents("路径\文件名.xlsx"), null, true), 筛选掉无关工作表 = Table.SelectRows(源, each Text.Contains([Name ......
HTTP Content-Security-Policy CSP策略
CSP(Content Security Policy)内容安全策略 是一个额外的安全层,用于检测并削弱某些特定类型的攻击,包括跨站脚本(XSS)和数据注入攻击等。无论是数据盗取,网站内容污染还是恶意软件分发,这些攻击都是主要的手段。 CSP被设计完全向后兼容,不支持CSP的浏览器也能与实现了CSP ......
HTTP Strict Transport Security HSTS
HTTP Strict-Transport-Security (通常简称为HSTS) response header用来通知浏览器应该只通过HTTPS访问该站点,并且以后使用HTTP访问该站点的所有尝试都应自动重定向到HTTPS。 语法 Strict-Transport-Security: max- ......
正则表达式
?: ?= ?!非捕获元的使用 正则表达式中()表示捕获分组,()会把每个分组里的匹配的值保存起来,多个匹配值可以通过数字n来查看(n是一个数字,表示第n个捕获组的内容)。 ?: 是用来消除使用圆括号匹配被缓存的副作用。 ?= 正向预查,在任何开始匹配圆括号内的正则表达式模式的位置来匹配搜索字符串。 ......
适配器模式
The Adpative design pattern converts the interface of a class to another interface clients expect. This design pattern lets classes work together that ......
桥接模式
The Bridge design pattern decouples an abstraction from its implementation so tha the two can vary independently. 桥接模式将抽象和实现解耦,以便两者可以独立变化。 UML Class D ......
组合模式
The Composite design pattern composes objects into tree structures to represent part-whole hierarchies. This pattern lets clients treat individual obj ......
装饰器模式
The Decorator Design Pattern attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to subclassing ......
外观模式
The Facade design patten provides a unified interface to a set of interfaces in a subsystem.This pattern defines a higher-level interface that makes t ......
享元模式
The Flyweight design pattern uses sharing to support large numbers of fine-gained objects efficiently. 享元模式用共享有效支持大量细粒度的对象。 UML Class Diagram Flyweigh ......
责任链模式
The Chain of Responsibility design pattern avoids coupling the sender of the request to its receiver by giving more than one object a chance to handle ......
命令模式
The Command design pattern encapsulates a request as an object, thereby letting you paramize clients with different requests, queue or log requests, a ......
解释器模式
Give a language, the Interpreter design pattern defines a representation for its grammar along with an interpreter that uses the representation to int ......
迭代器模式
The Iterator design pattern provides a way to acess the elements of an aggregate object sequentially without exposing its underlying representation. 迭 ......
状态模式
The State design pattern allows an object to alter its behavior when its internal state changes, The object will appear to change its class.状态设计模式允许当对 ......
20230603
## 日期 2023-06-03 **连续总结第三天** ## 事项 - 赛博劳工周末加班 - 看了星盟re入门2,很短,准备一起总结到(1),明天搞 - 快速过了滴水逆向入门视频两个,主要是动调跳过判断语句,实现破解的基础思路 ......
第一天
## FAT FAT(File Allocation Table)是一种文件系统,最初由Microsoft开发并广泛用于MS-DOS和windows操作系统中。FAT文件系统旨在为存储设备提供一种简单、可靠和易于实现的文件系统,以便在不同的计算机之间共享文件。 FAT文件系统将存储设备分成多个扇区( ......
策略模式
The Strategy design pattern defines a familiy of algorithms, encapsulate each one, and make them interchangeable. This pattern lets the algorithm vary ......
模板方法模式
The Template Method design pattern defines the skeleton of an algorithm in an operation, defering some steps to subclasses. This pattern lets subclass ......
创建型设计模式
The Creational Design Pattern are Categorized into two types. Object-Creational Patterns: Object -Creational Patterns deal with object creation. Here, ......
Request类源码分析、序列化组件介绍、序列化类的基本使用、常用字段类和参数、反序列化之校验、反序列化之保存、APIVIew+序列化类+Response写的五个接口代码、序列化高级用法之source、序列化高级用法之定制字段的两种方式、多表关联反序列化保存、反序列化字段校验其他、ModelSerializer使用
[TOC] # 一、Request类源码分析 ```python # Request源码 -方法 __getattr__ -在视图类的方法中,执行request.method ,新的request是没有method的,就触发了新的Request的__getattr__方法的执行 def __geta ......