
Python
文章平均质量分 73
纯属虚构
互联网后台开发大数据Linux
展开
-
python环境的搭建(editplus)
去卓朗实习面试之前就已经决定好好学习Python了。 试过不同的IDE,耐心有限,最后选择了EditPlus。 1. 安装Python2.x。Python3很多东西不一样了,而且会有支持不支持的问题,很麻烦,比如print函数就很不一样了,所以用2,我是2.5。 2. editplus英文版。用的editpus2 3. 下载两个文件。 然后,原创 2012-06-06 20:48:28 · 759 阅读 · 0 评论 -
Python中的集合:set与frozenset用法举例
【1】创建:从list或tuple中创建,我就会这两种。不能从数字直接创建:a=set(1)错误!1.sa=set(列表)2.sa=set(tuple)代码: 【2】交集sc = sa & sbsc=sa.intersection(sb)sc=sb.intersection(sa)三种是等价的将交集赋值给当前集合:sa=sa & sb原创 2013-01-07 22:02:50 · 16911 阅读 · 0 评论 -
第一次用python:计算概率矩阵
# -*- coding: utf-8 -*-"""Spyder EditorThis temporary script file is located here:C:\Documents and Settings\chen\.spyder2\.temp.py"""from numpy import *from scipy import *from iterto原创 2013-01-07 16:39:44 · 3307 阅读 · 0 评论 -
Python读取YUV
# -*- coding: utf-8 -*-"""Created on Thu Jan 10 10:48:00 2013@author: Chen Ming"""from numpy import *import Image screenLevels = 255.0 def yuv_import(filename,dims,numf原创 2013-01-10 17:13:24 · 7172 阅读 · 1 评论 -
Python_yuv读取,yuv转rgb
# -*- coding: utf-8 -*-"""Created on Thu Jan 10 10:48:00 2013@author: Chen Ming"""from numpy import *import Image screenLevels = 255.0 def yuv_import(filename,dims,numf原创 2013-01-11 00:35:41 · 5019 阅读 · 0 评论 -
基数估计:线性概率计数器
线性概率计数器可以在线性时间你估计数据的基数。 # -*- coding: utf-8 -*-"""Created on Tue Jan 15 16:17:10 2013@author: chen ming基数估计:线性概率计数器"""import randomimport mathM=120000 #rna= 20000N=14d原创 2013-01-15 21:10:46 · 1330 阅读 · 0 评论