Python
介城浩
一直在学习,不曾止步。
展开
-
Python一些学习资源
1 The Hitchhiker‘s Guide to Python! docs.python-guide.org/en/latest/原创 2013-12-02 13:23:42 · 880 阅读 · 0 评论 -
Python Numpy
Numpy arrays:array&matrixAn array may be a vector (one-dimensional array)>>> from numpy import *>>> array([1, 2, 3, 4])array([1, 2, 3, 4])Or a matrix (a two-dimensional array)>>> array原创 2014-01-05 21:49:11 · 758 阅读 · 0 评论 -
python基础笔记
python的数据类型:基本数据类型:None, Boolean, Integer, Float, Long, Complex导入python精确除法from __future__ import division序列类型:list, tuple, string, xrange(只在python 2.中有)Python中的对象之间赋值时是按引用传递的,如果需要拷贝对象,需要使用标准库原创 2014-01-05 11:17:05 · 816 阅读 · 0 评论 -
python中的三个内置函数map,reduce,filter
先介绍下python中的三个内置函数map,reduce,filter1 mapmap(...) map(function, sequence[, sequence, ...]) -> list对sequence中的item依次执行function(item),执行结果输出为list>>> map(str, range(5)) #对range(5)各项进转载 2014-01-05 20:23:30 · 909 阅读 · 0 评论 -
利用Python的PIL库进行简单的图像处理
近来看到一篇关于python做图像处理的技术贴,觉得挺有意思,在网上查了查,刚好有一些小例子,随手写了写,觉得挺有意思,拿出来分享一下。PIL (Python Imaging Library)是 Python 中最常用的图像处理库,其中Image类是PIL库中一个非常重要的类,通过这个类来创建实例可以有直接载入图像文件。利用PIL可以实现简单的图像处理,如裁剪/旋转/模糊/滤镜等,这里以用PIL进行原创 2016-04-28 23:40:48 · 3042 阅读 · 0 评论