PythonMagick是imagemagick的python版本 实际上他是magick++的封装。函数,参数和magick++是一样的 参考文档:https://imagemagick.org/Magick++/tutorial/Magick++_tutorial.pdf 下面是一些摸索下来的心 ...
分类:
编程语言 时间:
2018-10-11 18:41:08
阅读次数:
2951
一、首先安装必要的库 nginx 中gzip模块需要 zlib 库,rewrite模块需要 pcre 库,ssl 功能需要openssl库。选定/usr/local为安装目录,以下具体版本号根据实际改变。 1.安装PCRE库 $ cd /usr/local/ $ wget ftp://ftp.csx ...
分类:
系统相关 时间:
2018-10-05 18:58:41
阅读次数:
236
示例1: 输出结果为:100 300 500 为什么不是100 500呢? 原因如下: vector erase以后,itor已经指向下一个元素了,不应该执行itor++, 否则会跳过下一个元素,即连续两个300时跳过了第二个300. ...
分类:
其他好文 时间:
2018-10-05 13:47:33
阅读次数:
139
1 /************************************************* 2 * 项目名称:AR设置对焦功能 3 * 脚本创建人:魔卡 4 * 脚本创建时间:2018.10.02 5 * 脚本功能:对焦功能设置 6 * ************************... ...
分类:
编程语言 时间:
2018-10-03 23:34:48
阅读次数:
280
[题目链接] https://codeforces.com/contest/496/problem/E [算法] 按右端点排序 , 每个乐曲优先选取的左端点最大的演奏家 用std :: set维护贪心 时间复杂度 : O(NlogN) [代码] ...
分类:
其他好文 时间:
2018-10-03 23:24:28
阅读次数:
143
题目链接:C. 痛苦的 01 矩阵 题目大意:原题说的很清楚了,不需要简化_(:з」∠)_ 题解:设\(r_i\)为第\(i\)行中0的个数,\(c_j\)为第\(j\)列中0的个数,\(f_{i,j}\)代表对应格子是否为0,则有\(cost(i,j)=r_i+c_j-f_{i,j}\),\((c ...
分类:
其他好文 时间:
2018-10-03 00:50:05
阅读次数:
196
注意:此程序在win环境下会出现上述描述的问题;在mac环境下第一种方式是正常运行的。Map.erase有3个重载函数: void erase(iterator position); size_type erase(const key_type& x); // 这个如果size_type为int,则 ...
分类:
编程语言 时间:
2018-10-02 17:23:14
阅读次数:
221
描述 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: 思路 借鉴Merge Two Sorted Lists的解决思路,对两个数组先 ...
分类:
编程语言 时间:
2018-09-28 15:23:37
阅读次数:
142
https://blog.csdn.net/wumiju/article/details/80429412 public partial class ProductTypeModel:DbEntityModels.ProductType { public List<ProductTypeModel> ...
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c ...
分类:
其他好文 时间:
2018-09-23 13:48:06
阅读次数:
191