kubernetes v1.18.2 二进制部署 ipv4 etcd 部署
分类:
Web程序 时间:
2020-05-07 09:22:54
阅读次数:
62
1 import numpy as np 2 import matplotlib.pyplot as plt 3 import matplotlib 4 matplotlib.rcParams['font.family']='SimHei' 5 matplotlib.rcParams['font.s ...
分类:
编程语言 时间:
2020-05-06 20:12:25
阅读次数:
96
解决办法1:在读取数据进行判断时,若为数字类型: if(cell.getCellType() == Cell.CELL_TYPE_NUMERIC){ //数字 if(String.valueOf(cell.getNumericCellValue()).indexOf("E") 1){ return ...
分类:
其他好文 时间:
2020-05-06 10:28:56
阅读次数:
121
1 from PIL import Image 2 import numpy as np 3 4 a = np.asarray(Image.open('D:\\python_common_exercise\\exercise\\taylor.jpg').convert('L')).astype('f ...
分类:
其他好文 时间:
2020-05-05 10:58:07
阅读次数:
68
原生cell没有长按事件,我们需要使用手势识别来绑定CollectionView。创建并绑定CollectionView如下: (void)viewDidLoad { [super viewDidLoad]; */ //创建长按手势监听 UILongPressGestureRecognizer *l ...
分类:
其他好文 时间:
2020-05-05 10:48:11
阅读次数:
69
常用场景 1. 将用户信息导出为excel表格 2. 将excel的信息导入到数据库,减轻大量网站录入量 开发经常使用到excel导入导出 Apache POI官网: "https://poi.apache.org/" 比较麻烦 Apache POI项目的任务是创建和维护Java API,以基于Of ...
分类:
其他好文 时间:
2020-05-04 21:30:43
阅读次数:
66
一、类与对象和构造函数 class Point: def __init__(self,x,y): self.x = x self.y = y def move(self): print("move") def draw(self): print("draw") 创建一个对象 point1 = Poi ...
分类:
编程语言 时间:
2020-05-04 13:16:49
阅读次数:
54
题目: 解答: 1 class Solution { 2 public: 3 int compress(vector<char>& chars) 4 { 5 6 if (chars.empty()) 7 { 8 return 0; 9 } 10 11 size_t j = 0; 12 int cnt ...
分类:
其他好文 时间:
2020-05-03 20:05:57
阅读次数:
53
一、数组 数组是具有固定长度且拥有零个或多个相同数据类型元素的序列。 声明数组: 初始化数组: 使用数组: 二、切片(slice) slice是表示一个拥有相同类型元素的可变长度的序列,通常写成[]T。可以用来访问数组的部分或全部元素,这个数组称为slice的底层数组,slice有三个属性:指针、长 ...
分类:
编程语言 时间:
2020-05-03 01:09:49
阅读次数:
67
本篇参考:https://developer.salesforce.com/blogs/2018/07/which-streaming-event-do-i-use.html https://trailhead.salesforce.com/content/learn/modules/platfor ...
分类:
其他好文 时间:
2020-05-03 00:46:44
阅读次数:
83