交换空间太小,使用dd的方式扩展2G空间。 ubuntu@ubuntu-42:/usr/local/tomcat$ free -h total used free shared buff/cache available Mem: 7.6G 6.0G 855M 13M 765M 1.3G Swap: ...
分类:
其他好文 时间:
2020-05-09 00:43:48
阅读次数:
63
[root@localhost ]# qemu-img convert -f qcow2 -O raw CentOS-8-8.1.1911.x86_64.qcow2 CentOS-8-8.1.1911.x86_64.raw [root@localhost ]# losetup /dev/loop12 ...
分类:
其他好文 时间:
2020-05-08 18:08:52
阅读次数:
76
from PIL import Image import numpy as np a = np.asarray(Image.open(r'C:\Users\Administrator\Pictures\院徽.jpg').convert('L')).astype('float') depth = 10 ...
分类:
其他好文 时间:
2020-05-06 21:44:04
阅读次数:
74
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FineUICore; using Microsoft.AspNetCore.Authoriz ...
分类:
其他好文 时间:
2020-05-06 21:34:28
阅读次数:
86
from PIL import Image import numpy as np a = np.asarray(Image.open('C:\\Users\\huanghy\\Desktop\\微信图片_20200425024250.png').convert("L")).astype("float ...
分类:
编程语言 时间:
2020-05-06 19:42:54
阅读次数:
77
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
1. img = img.convert() PIL有九种不同模式: 1,L,P,RGB,RGBA,CMYK,YCbCr,I,F。 1.1 img.convert('1') 为二值图像,非黑即白。每个像素用8个bit表示,0表示黑,255表示白。 1.1.1 Code 1 from PIL impo ...
分类:
编程语言 时间:
2020-05-04 13:06:40
阅读次数:
458
题目: 解答: 1 class Solution { 2 public: 3 string convert(string s, int numRows) 4 { 5 if (numRows == 1) 6 { 7 return s; 8 } 9 10 // 防止s的长度小于行数 11 vector< ...
分类:
其他好文 时间:
2020-05-04 10:40:43
阅读次数:
63
一、背景 最近公司项目添加新功能,上线后发现有些功能的列表查询时间很久。原因是新功能用到旧功能的接口,而这些旧接口的 SQL 查询语句关联5,6张表且编写不够规范,导致 MySQL 在执行 SQL 语句时索引失效,进行全表扫描。原本负责优化的同事有事请假回家,因此优化查询数据的问题落在笔者手中。笔者 ...
分类:
数据库 时间:
2020-05-03 11:03:08
阅读次数:
66