第 0022 题: iPhone 6、iPhone 6 Plus 早已上市开卖。请查看你写得 第 0005 题的代码是否可以复用。思路:跟第五题一样,遍历给出目录下的图片,把大于iPhone5分辨率的图片都进行缩放。使用Python的PIL库对图片进行处理,IPhone5屏幕分辨率为640 × 1136,将大于该分辨率的图片按照一定比例缩放至适合大小并保存。由于第五题已经写过相关函数,就改动一下变成...
分类:
编程语言 时间:
2015-06-18 01:52:41
阅读次数:
152
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is...
分类:
其他好文 时间:
2015-06-17 23:23:03
阅读次数:
277
1 ********************************************************************** 2 C++ Primer第一章 笔记 3 ****************************************************...
分类:
编程语言 时间:
2015-06-17 21:20:39
阅读次数:
218
学习总结1、函数有利于我们可以省去重复的代码,函数可以使程序更加模块化,从而有利于程序的阅读、修改和完善。我们在系统设计或架构设计的时候,往往追求的是模块化、组件化、松耦合,而函数就是其代码的表现。许多程序员喜欢把函数看作“黑盒子”,即对应一定的输入产生特定的结果或返回某个数值,而黑盒子的内部行为并...
分类:
编程语言 时间:
2015-06-17 19:54:33
阅读次数:
274
“Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle)instead”出現這個問題時使用Window->Android->Lint Error...
分类:
其他好文 时间:
2015-06-17 18:06:51
阅读次数:
252
1、一个类似于美团、腾讯课堂移动端的带过滤功能的下拉菜单。
教程:https://github.com/leerduo/FilterDropDownMenu
2、可以完成添加、删除、选择操作的标签控件,可以自定样式(颜色等),可删除的标签末尾带有'×'符号。和Android-Cloud-TagView-Plus(见正文相关代码)类似。https://github.com/n...
分类:
移动开发 时间:
2015-06-17 13:33:39
阅读次数:
151
Description:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant...
分类:
其他好文 时间:
2015-06-17 00:26:35
阅读次数:
166
转载自:http://blog.csdn.net/nsj820/article/details/6573525、ORACLE数据库启动模式1、启动SQL*PLUS不与数据库连接SQLPLUS /NOLOG2、以SYSDBA角色与Oracle连接CONNECT username/password AS...
分类:
数据库 时间:
2015-06-16 22:52:27
阅读次数:
156
1.运行时类型识别(run-time type identification,RTTI)的功能由两个运算符实现:(1)typeid运算符,用于返回表达式的类型。(2)dynamic_cast 运算符,用于将基类的指针或引用安全地转换成派生类的指针或引用。2.输出补白:标准库提供了一些操作符帮助我们完...
分类:
编程语言 时间:
2015-06-16 22:45:11
阅读次数:
214
CAXPYconstant times a vector plus a vector. //常数乘以一个向量加上一个向量。CCOPYcopies a vector x to a vector y.//复制一个向量x到y的向量。CDOTCforms the dot product of two vec...
分类:
其他好文 时间:
2015-06-16 16:17:34
阅读次数:
112