我们下载python的库一般会使用pip工具。但在下载的过程中经常会timeout,这是因为资源在国外,我们国内某些资源下载速度特别慢,我比较常用且有效的方法是: 使用国内镜像:使用方法如下(超级简单) # 直接在后面添加 -i "https://pypi.doubanio.com/simple/" ...
分类:
其他好文 时间:
2020-10-29 09:43:12
阅读次数:
17
Dapper - a simple object mapper for .Net Dapper是.NET下一个micro ORM,它和Entity Framework或Nhibnate不同,属于轻量级的,并且是半自动的,也就是说实体类都要自己写。 下载地址:https://github.com/St ...
分类:
移动开发 时间:
2020-10-29 09:39:30
阅读次数:
36
以下操作在maven正确安装前提下进行 1、在eclipse中配置maven Perferences——>Maven——>User Settings,进行如下配置 2、创建Maven web项目 a、找到maven project b、勾选simple-project 3、填写项目相关信息 需要注意 ...
分类:
Web程序 时间:
2020-10-26 11:25:31
阅读次数:
42
抽象工厂模式(Abstract Factory) 1.模式动机 在工厂方法模式中具体工厂负责生产具体的产品,每一个具体工厂对应一种具体产品,工厂方法也具有唯一性,一般情况下,一个具体工厂中只有一个工厂方法或者一组重载的工厂方法。但是有时候我们需要一个工厂可以提供多个产品对象,而不是单一的产品对象。 ...
分类:
其他好文 时间:
2020-10-24 10:24:02
阅读次数:
19
1 # -*- coding:utf-8 -*- 2 3 import cv2 4 import os 5 6 7 images = 'D:\\sunway-AI\\Video_Frame\\' 8 if not os.path.exists(images): 9 os.mkdir(images) ...
分类:
其他好文 时间:
2020-10-18 16:41:48
阅读次数:
17
工厂模式 工厂模式是用于隐藏创建对象的细节 工厂模式核心:工厂类(Factory) 工厂模式细分为:简单工厂,工厂方法与抽象工厂 ...
分类:
其他好文 时间:
2020-10-16 10:44:21
阅读次数:
18
FIFO library The FIFO library provides a simple circular buffer implementation for storing bytes. The FIFO uses the size and buffer memory provided by ...
分类:
其他好文 时间:
2020-10-12 20:40:45
阅读次数:
29
Dynamic stream handling 动态流处理 Dependency To use Akka Streams, add the module to your project: val AkkaVersion = "2.6.9" libraryDependencies += "com.ty ...
分类:
其他好文 时间:
2020-10-12 20:14:08
阅读次数:
21
MyBatis框架的优缺点 一.优点 1.与JDBC相比,减少了50%的代码量 2.最简单的持久化框架,小巧简单易学 3.SQL代码从程序代码中彻底分离,可重用 4.提供XML标签,支持编写动态SQL 5.提供映射标签,支持对象与数据库的ORM字段映射 二.缺点 1.SQL语句编写工作量大,对开发人 ...
分类:
其他好文 时间:
2020-10-12 20:04:14
阅读次数:
21
In our last example, we explored the scheduling of 2 factories. Both factories had 2 costs: Fixed Costs - Costs incurred while the factory is running ...
分类:
其他好文 时间:
2020-10-12 20:02:33
阅读次数:
27