本文收录在个人博客: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
比特币工作在应用层,它的底层是一个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
简介 https://github.com/fanqingsong/machine_learning_system_on_spark a simple machine learning system demo, for ML study. Based on machine_learning_syst ...
分类:
系统相关 时间:
2020-08-27 11:48:09
阅读次数:
63
这次是之二:实例化对象、接口与父类、修饰符和属性。实例化对象之前我们讲解过创建对象的方式,有new、克隆、反序列化,再加一种,根据Class对象,使用newInstance()或者构造器实例化对象。调用以下api即可//获取源头Class<?>clz=Class.forName("com.shsxt.ref.simple.User");//第一种:通过newInstance()创建对象
分类:
编程语言 时间:
2020-08-26 17:14:20
阅读次数:
58
Linux pip安装速度慢(超时报错),为pip换源 mkdir -p ~/.pip/ vim pip.conf pip.conf中内容如下: [global] index-url=http://mirrors.aliyun.com/pypi/simple/ [install] trusted-h ...
分类:
系统相关 时间:
2020-08-25 18:29:01
阅读次数:
88
1. 环境搭建 1.1 创建虚拟环境 # 如果当前系统中没有虚拟环境,则使用以下命令安装虚拟环境: # pip3 install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple # pip3 install virtualenvwrapp ...
分类:
其他好文 时间:
2020-08-20 19:25:45
阅读次数:
112
安装环境 操作系统:64位Windows10家庭版 虚拟机:Virtualbox Linux系统:Ubuntu20.04.1-desktop-amd64 安装流程 Virtualbox安装 Virtualbox下载 安装过程中可以更换安装路径,其他选项默认就好! Ubuntu.iso下载 Ubunt ...
分类:
系统相关 时间:
2020-08-17 17:51:28
阅读次数:
132
Esp8266 Web Server 应用实例 - Simple Web Console,本文旨在向读者介绍使用Esp8266 WiFi板搭建Web Server应用的原理。示例向读者展示了如何创建Web Console,以及如何使Web Console与NodeMcu进行交互。
分类:
Web程序 时间:
2020-08-13 12:22:48
阅读次数:
85