参考:https://labuladong.gitbook.io/algo/dong-tai-gui-hua-xi-lie/dong-tai-gui-hua-zhi-bo-yi-wen-ti 问题: 给定一堆石子的得分。A和B两个人进行如下游戏, 轮流,从石堆的两边选择一个石子,最终获得得分最大的人 ...
分类:
其他好文 时间:
2020-09-17 20:37:47
阅读次数:
21
Object.keys(obj) 参数 obj:要返回其枚举自身属性的对象 返回值:一个表示给定对象的所有可枚举属性的字符串数组 eg- // simple array var arr = ['a', 'b', 'c']; console.log(Object.keys(arr)); // cons ...
分类:
Web程序 时间:
2020-09-17 20:36:04
阅读次数:
33
#一、状态模式介绍 ##1、定义与类型 允许一个对象在其内部状态改变时,改变它的行为 类型:行为型 ##2、适用场景 一个对象存在多个状态(不同状态下行为不同),且状态可相互转换 ##3、优点 将不同的状态隔离 把各种状态的转换逻辑,分布到State的子类中,减少相互间依赖 增加新的状态非常简单 # ...
分类:
其他好文 时间:
2020-09-17 19:19:40
阅读次数:
31
题目描述: This is the first problem for test. Since all we know the ASCII code, your job is simple: Input numbers and output corresponding messages. 输入: T ...
分类:
其他好文 时间:
2020-09-17 17:23:30
阅读次数:
51
https://github.com/januwA/GameCheat #include "pch.h" #include <iostream> #include <Windows.h> #include "GameCheat.h" using namespace std; void __stdca ...
分类:
编程语言 时间:
2020-09-17 15:31:59
阅读次数:
36
本文收录在个人博客:www.chengxy-nds.top,技术资料共享,同进步时间格式化在项目中使用频率是非常高的,当我们的API接口返回结果,需要对其中某一个date字段属性进行特殊的格式化处理,通常会用到SimpleDateFormat工具处理。SimpleDateFormatdateFormat=newSimpleDateFormat("yyyy-MM-dd");DatestationTi
分类:
编程语言 时间:
2020-09-16 12:03:06
阅读次数:
32
一、环境配置 需要 pillow 和 pytesseract 这两个库,pip install 安装就好了。 pip install pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pip install ...
分类:
其他好文 时间:
2020-09-09 19:12:57
阅读次数:
35
GAMEPLAY_END_OF_GAME_PLACE_1 第一名!! GAMEPLAY_END_OF_GAME_PLACE_2 第二名! GAMEPLAY_END_OF_GAME_PLACE_3 第三名! GAMEPLAY_END_OF_GAME_PLACE_4 第四名! GAMEPLAY_END_ ...
分类:
其他好文 时间:
2020-09-09 19:10:25
阅读次数:
60
比特币工作在应用层,它的底层是一个P2P网络。比特币的P2P网络是非常简单的,所有节点都是对等的,不会出现某些P2P网络中所谓的超级节点或者中心节点。 比特币网络的设计原则:simple, robust, but not efficient,即简单,健壮,而不是高效。每个节点都会维护一个邻居节点的集 ...
分类:
其他好文 时间:
2020-09-07 19:19:43
阅读次数:
59
分类: (1)简单工厂(Simple Factory)模式,又称静态工厂方法模式(Static Factory Method Pattern)。 (2)工厂方法(Factory Method)模式,又称多态性工厂(Polymorphic Factory)模式或虚拟构造子(Virtual Constr ...
分类:
编程语言 时间:
2020-09-03 17:02:45
阅读次数:
49