码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
Python Special Syntax
#!/usr/bin/python# Filename: for.pyfor i in range(1, 5): print ielse: print 'The for loop is over'for循环在这个范围内递归——for i in range(1,5)等价于for i in ...
分类:编程语言   时间:2014-07-02 19:12:24    阅读次数:288
python学习笔记[1]-凯撒密码
菜鸟python路
分类:编程语言   时间:2014-07-02 19:06:24    阅读次数:228
Python PIL创建文字图片
PIL库中包含了很多模块,恰当地利用这些模块可以做许多图像处理方面的工作。 下面是我用来生成字母或字符串测试图片而写的类及测试代码。 主要用到的模块: PIL.Image,PIL.ImageDraw,PIL.ImageFont PIL.Image用来生成一个空的图片,ImageDraw用来在空图片上...
分类:编程语言   时间:2014-07-02 18:29:22    阅读次数:581
MAC 安装MySQLdb
python开发环境配置
分类:数据库   时间:2014-07-02 18:16:31    阅读次数:280
django基础
1、一个视图就是Python的一个函数。这个函数第一个参数的类型是HttpRequest;它返回一个HttpResponse实例。为了使一个Python的函数成为一个Django可识别的视图,它必须满足这两个条件。2、URLconf就像是 Django 所支撑网站的目录。 它的本质是 URL 模式以...
分类:其他好文   时间:2014-07-02 18:14:21    阅读次数:202
用python计算lda语言模型的困惑度并作图
转载请注明:电子科技大学EClab——落叶花开http://www.cnblogs.com/nlp-yekai/p/3816532.html困惑度一般在自然语言处理中用来衡量训练出的语言模型的好坏。在用LDA做主题和词聚类时,原作者D.Blei就是采用了困惑度来确定主题数量。文章中的公式为:perp...
分类:编程语言   时间:2014-07-02 18:03:38    阅读次数:827
mysql 授权
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges;grant select on weixin.wx_tuijian to 'bbc....
分类:数据库   时间:2014-07-02 17:55:37    阅读次数:229
sqlite3 on python for newbies
python 集成了 sqlite3 ,其接口很简单:import sqlite3db_connection = sqlite3.connect(db_filename)db_cursor = db_connection.cursor()db_cursor.execute('select * fro...
分类:数据库   时间:2014-07-02 17:46:35    阅读次数:306
Team USA Soccer Gear Sales Get World Cup Assist
Team USA Soccer Gear Sales Get World Cup AssistMaybe there's something to all that talk aboutAmerica catching the soccer bug. The recent success of th...
分类:其他好文   时间:2014-07-02 17:38:55    阅读次数:258
python打印详细的异常信息
#!/usr/bin/env python#coding=utf-8import traceback try: 1/0except Exception, e: print e print traceback.format_exc()
分类:编程语言   时间:2014-07-02 17:34:59    阅读次数:266
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!