class Transport: '交通工具' def __init__(self,name, type, place): self.name=name self.type=type self.place=place function='运输' def pick(self): print('%s%s ...
分类:
编程语言 时间:
2020-02-18 18:31:10
阅读次数:
74
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whe ...
分类:
其他好文 时间:
2020-02-17 01:19:34
阅读次数:
85
```python class CarFactory: '''用Python实现工厂模式''' def creatCar(self, car_name): if car_name == 'Benz': car = Benz() elif car_name == 'BMW': car = BMW() ... ...
分类:
编程语言 时间:
2020-02-15 15:25:10
阅读次数:
70
数据库约束的种类 约束名 约束关键字 主键 primary key 唯一 unique 非空 not null 外键 foreign key 检查约束 check 注:mysql 不支持,sql支持 主键约束 创建主键方式 在创建表的时候给字段添加主键 字段名 字段类型 PRIMARY KEY 例1 ...
分类:
数据库 时间:
2020-02-15 09:35:10
阅读次数:
109
Angular第三方UI组件库(github搜“awesome angular ") lonic 概述:是一个第三方的适用于移动端App的UI组件库,可以与Angular/React/Vue.js组合,也可以独立使用。 九种主题色:primary、secondary、tertiary、danger、 ...
分类:
其他好文 时间:
2020-02-13 19:20:56
阅读次数:
60
GPU=0 CUDNN=0 OPENCV=0 OPENMP=0 DEBUG=0 ARCH= -gencode arch=compute_30,code=sm_30 \ -gencode arch=compute_35,code=sm_35 \ -gencode arch=compute_50,cod ...
分类:
其他好文 时间:
2020-02-13 00:20:54
阅读次数:
116
(1)枚举类型enum 1 package JavaEE.JavaBaseExampleTest.Functions; 2 3 /** 4 * Java 创建枚举类型要使用 enum 关键字,隐含了所创建的类型都是 java.lang.Enum 类的子类 5 */ 6 7 enum Car { 8 ...
分类:
其他好文 时间:
2020-02-12 16:52:41
阅读次数:
93
Reids "Redis" 是高级键值缓存和存储。它通常被称为数据缓存服务器,因为键可以包含字符串,哈希,列表,集合,排序集合,位图和超级日志。 TL;DR; 默认情况下,此图表总共安装3个Pod: 一个pod包含Redis主容器和哨兵容器(提供可选的Prometheus指标导出器Sidecar) ...
分类:
其他好文 时间:
2020-02-12 16:37:53
阅读次数:
68
Petr has just bought a new car. He's just arrived at the most known Petersburg's petrol station to refuel it when he suddenly discovered that the petr ...
分类:
其他好文 时间:
2020-02-12 00:42:21
阅读次数:
53
1 重要思想:升维 时间换空间的思想 链表 —> 跳表(增加多级索引) ...
分类:
编程语言 时间:
2020-02-11 17:36:28
阅读次数:
69