XOR

selenium获取页面文本的3种方法

1、find_element driver.find_element(By.XPATH, value_xpath).text 2、页面元素解析 public_notice = self.driver.page_source public_notice_parse = BeautifulSoup(pu ......
selenium 文本 页面 方法

[转]关于汉字转拼音的Pinyin4j工具使用

关于汉字转为拼音的相关实现,通常使用Pinyin4j框架,整理一下Pinyin4j的使用 官方文档: pinyin4j.sourceforge.net/ 1 Pinyin4j的简介 Pinyin4j 是一个流行的Java开源类库,支持中文字符和拼音之间的转换。拼音输出格式可以定制。 支持功能: 支持 ......
拼音 Pinyin4j Pinyin4 工具 Pinyin

策略模式

来源: 策略模式 ......
策略 模式

Element plus设置中文语言方法

前言 在vue3.0使用element plus的时候发现表格组件内的语言默认为英语,到官网看了一下,发现确实如此,按照官网的方法修改了一下发现有一种是没用效果,下面上有效的方法 ``` ``` 或者 ```js ``` 直接将App.vue修改为以上代码即可实现将语言修改为中文,之所以elemen ......
Element 语言 方法 plus

RabbitMQ

常见的消息队列很多,主要包括 RabbitMQ、Kafka、RocketMQ 和 ActiveMQ,相关的选型可以看我之前的系列,这篇文章只讲 RabbitMQ,先讲原理,后搞实战。 文章很长,如果你能一次性看完,“大哥,请收下我的膝盖”,建议大家先收藏,啥时需要面试,或者工作中遇到了,可以再慢慢看 ......
RabbitMQ

Docker制作dotnet core程序镜像

[](https://www.cnblogs.com/xhznl/p/13353095.html) ## Dockerfile 右键项目→添加Docker支持,目标OS选择Linux![1.gif](https://cdn.nlark.com/yuque/0/2022/gif/2130693/165 ......
镜像 程序 Docker dotnet core

MongoDB性能优化记录

1、设置WiredTiger的cacheSizeGB mongod.conf中配置 storage: wiredTiger: engineConfig: cacheSizeGB: <number> docker-compose启动参数中增加配置 version: '3' services : mon ......
性能 MongoDB

C++中Lambda表达式快速入门

c++中Lambda表达式其实就是匿名函数,它可以增加代码灵活性和简洁性 Lambda表达式格式如下: [变量捕获](参数列表)->返回值类型{ 函数体 };// 例1[&](int a,int b)->int{ return a+b;};// 例2[&](int a,int b){ return ......
表达式 Lambda

转载:PageOffice动态生成Word文件并转换为PDF

说明:PageOffice是客户端插件,做不到纯后台调用把word转为pdf。但是pageoffice的FileMaker对象可以实现不在客户端打开文件直接转换文件为pdf并保存到服务器端,看起来跟服务器端转换的效果一样。 # 1、环境 前端:vue 后端:springboot、pageoffice ......
PageOffice 文件 动态 Word PDF

COMP2401A C语言编程

COMP2401A – Assignment 1PrerequisitesBefore you can attempt the steps in this assignment you need to install and configure yourdevelopment environment ......
语言编程 语言 2401A COMP 2401

pandas库来将数据写入到excel文件

来自:https://devpress.csdn.net/chengdu/647f47c2ade290484cb2ec32.html, 感谢作者 前言 本文主要简单介绍一下使用python的pandas库来将数据写入到excel文件中。 一、pandas是什么? 示例:pandas 是基于NumPy ......
文件 数据 pandas excel

18) Mediator pattern

类别: Behavioral Pattern 问题: encapsulate [ɪn'kæpsjʊleɪt] enclose in a capsule or other small container define an object that encapsulates how a set of o ......
Mediator pattern 18

19) Memento pattern

类别: Behavioral Pattern (备忘录模式) 问题: 方案: 示例: import java.util.ArrayList; import java.util.List; public class MementoPatternDemo { public static void mai ......
Memento pattern 19

20) Observer pattern

类别: Behavioral Pattern 问题: 方案1: 示例1: import java.util.ArrayList; import java.util.List; public class ObserverPatternDemo { public static void main(Str ......
Observer pattern 20

22) Null Object pattern

类别: 问题: 方案: 示例: public class NullObjectPatternDemo { public static void main(String[] args) { Animal animal; animal = getAnimal("cat"); animal.makeSou ......
pattern Object Null 22

23) Strategy pattern

类别: Behavior Pattern 问题: 方案: 示例: public class StrategyPatternDemo { public static void main(String[] args) { Context context = new Context(new Operati ......
Strategy pattern 23

24) Template pattern

类别: Behavior Pattern 问题: 方案: 示例: public class TemplatePatternDemo { public static void main(String[] args) { Game game = new Cricket(); game.play(); S ......
Template pattern 24

25) Visitor pattern

类别: Behavior Pattern visit ['vizit] the act of going to see some person or place or thing for a short time 问题: 方案: 示例: public class VisitorPatternDemo ......
Visitor pattern 25

26) MVC Pattern

类别: 问题: 方案: 示例: public class MVCPatternDemo { public static void main(String[] args) { // fetch student record based on his roll no from the database ......
Pattern MVC 26

27) Business Delegate Pattern

类别: 问题: 方案: public class BusinessDelegatePatternDemo { public static void main(String[] args) { BusinessDelegate businessDelegate = new BusinessDelega ......
Business Delegate Pattern 27

11) Facade Pattern

类别: Structural Pattern 问题/动机: 系统非常复杂 隐藏复杂细节,提供简单界面 方案: 示例: /* Complex parts */ public class FacadePatternDemo { public static void main(String[] args) ......
Pattern Facade 11

12) Flyweight Pattern

类别: Structural Pattern 问题/动机: 假若绿色是相同部分,占用1M内存 ,如果提取出来,众对象共享其内容,只占1M内存 ,否则占10M ,且随着对象增多,占用越来越多内存 ,无疑是浪费资源 A flyweight is an object that minimizes memo ......
Flyweight Pattern 12

13) Proxy Pattern

类别: Structural Pattern 问题: 操纵一个对象时碍手碍脚,与装饰者模式不同之处: 装饰者是接口方法,授权小 代理则是整个类,授权大 方案: 示例: public class ProxyPatternDemo { public static void main(final Stri ......
Pattern Proxy 13

14) chain of responsibility pattern

类别: behavioral pattern 问题: 高耦合,不灵活 if(){ }else if(){ }else if(){ } ... 方案: 示例: public class ChainOfResponsibilityPattern { public static void main(Str ......
responsibility pattern chain 14 of

15) Command pattern

类别: Behavioral Pattern 问题: 方案: 示例: import java.util.ArrayList; import java.util.List; public class CommandPatternDemo { public static void main(String ......
Command pattern 15

16) Interpreter pattern

类别: behavioral pattern 问题: Polish notation https://en.wikipedia.org/wiki/Polish_notation Abstract syntax tree https://en.wikipedia.org/wiki/Abstract_s ......
Interpreter pattern 16

17) Iterator pattern

类别: behavioral pattern 问题: Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. 方案 ......
Iterator pattern 17

序) 设计模式参考资料

https://sourcemaking.com/design_patterns http://javapapers.com/design-patterns/ Design Patterns In software engineering, a design pattern is a general ......
设计模式 参考资料 模式 资料

验签失败!单元测试成功!!究竟是啥坑?

错误的入参: rawData > "{\"nickName\":\"拥有你便是拥有一切\",\"gender\":1,\"language\":\"zh_CN\",\"city\":\"Zhangjiakou\",\"province\":\"Hebei\",\"country\":\"China\ ......
单元

小程序后端服务上线如何配置

https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html 两种模式:一:无端口(即默认端口443,但是请求时不能带端口) 二:有端口(即便是默认443,也要带着) ......
程序