码迷,mamicode.com
首页 >  
搜索关键字:python 发邮件    ( 136485个结果)
Python学习笔记(一)
List与Tuple Python内置2种有序列表。List是可变数组,Tuple是不可变数组。 List范例:                                     Girls =['LiuJingjing','ZhangHuixin','YeFei'] -用len()函数获得list元素个数。 -索引位置从0开始,最后一个元素的索引是-1 Girls[-1]...
分类:编程语言   时间:2014-08-25 11:56:54    阅读次数:241
【机器学习算法-python实现】最大似然估计(Maximum Likelihood)
1.背景           最大似然估计是概率论中常常涉及到的一种统计方法。大体的思想是,在知道概率密度f的前提下,我们进行一次采样,就可以根据f来计算这个采样实现的可能性。当然最大似然可以有很多变化,这里实现一种简单的,实际项目需要的时候可以再更改。       博主是参照wiki来学习的,地址请点击我           这里实现的是特别简单的例子如下(摘自wiki的最大似然)离散分布,离散...
分类:编程语言   时间:2014-08-25 11:53:54    阅读次数:1655
Requires: python(abi) = 2.4 Installed: python(abi) = 2.6
[root@livecdyum.repos.d]#yuminstalllivecd-toolssyslinuxanaconda-runtimeLoadedplugins:fastestmirror,refresh-packagekit,securityLoadingmirrorspeedsfromcachedhostfile*base:centos.ustc.edu.cn*extras:centos.ustc.edu.cn*updates:mirrors.pubyun.comlivecd|951B00:00l..
分类:编程语言   时间:2014-08-25 10:09:05    阅读次数:1348
projecteuler---->problem=36----Double-base palindromes
Problem 36 The decimal number, 585 = 10010010012 (binary), is palindromic in both bases. Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2. (Please...
分类:其他好文   时间:2014-08-25 10:06:04    阅读次数:198
Unique Paths @ Python Leetcode EPI 17.4
Unique PathsA robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right a...
分类:编程语言   时间:2014-08-25 06:33:53    阅读次数:277
psycopg2 ImportError: DLL load failed
setup.py install 报错  error: command 'mt.exe' failed: No such file or directory  或者 Unable to find vcvarsall.bat 于是 用 setup.py insall build --compiler=mingw32 担心没装 mingw32,但是喜悦地发现以前装 ...
分类:其他好文   时间:2014-08-25 02:20:13    阅读次数:238
给tcpdump加点颜色看看
发布一个与tcpdump配合使用的Python脚本,可以为tcpdump的输出结果着色.红色是IP头。绿色是TCP头的定长部分,黄色是TCP头的可变长部分,即可选项。白色就是应用层socket数据。...
分类:其他好文   时间:2014-08-24 23:56:13    阅读次数:323
Python基础篇(九)
Key Words:文件迭代器,标准输入,GUI工具包,数据库操作SQLlite, 文件迭代器>>> f= open("some.txt","r+")>>> while True:... line = f.readline()... if not line : break... else :.......
分类:编程语言   时间:2014-08-24 23:37:53    阅读次数:344
python 连 mongodb
这几天在学习Python Web开发,于是做准备做一个博客来练练手,当然,只是练手的,博客界有WordPress这样的好玩意儿,何必还自己造车呢?决定使用Tornado这个框架,然后数据库方面决定顺便熟悉一下MongoDB这样的非关系型数据库。Python让我觉得轻松,再和MongoDB搭配上,那感...
分类:数据库   时间:2014-08-24 23:29:03    阅读次数:436
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!