码迷,mamicode.com
首页 >  
搜索关键字:python pip    ( 138295个结果)
python之tk简单学习之一个简单的钟表效果
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'#TK实现一个秒表效果#目的:是为了简单学习下TKfromtimeimport*fromTkinterimport*classStopWatch(Frame):mesc=50def__in...
分类:编程语言   时间:2014-09-09 11:48:48    阅读次数:551
Python资料收集
最近在学习Python,发现Python的模块真是不错 推荐使用WingIDE 在Vim模式下Tab键设置 Preferences->Keyboard->Tab Key Action = Insert Tab Character ~~~~~~~~~~~~~~~~~~~~~~~~~华丽的分割线~~~~...
分类:编程语言   时间:2014-09-09 11:41:48    阅读次数:220
Python3下开启科学计算模式
Python(x,y)是一款很好的Python2科学计算的集成开发环境但是Spyder,IPython感觉用起来总没有Winge 101来得流畅而且Python3的出现,众多模块也具备了3的相对应版本之前在Python3下开启pylab画图等模式时,总会出现许多问题所以,总结了一下import nu...
分类:编程语言   时间:2014-09-09 11:33:48    阅读次数:368
Learn Python From 'Head First Python' [3] : Exception
1.the using of exception2.file oprationimport os>>> try: data = open('sketch.txt') for each in data: try: (role,message) = eac...
分类:编程语言   时间:2014-09-09 11:28:28    阅读次数:189
Python Fundamental for Django
Strings>>> s = 'django is cool'>>> words = s.split()>>> words['django', 'is', 'cool']>>> ' '.join(words)'django is cool'>>> s.count('o')3>>> s.find('g...
分类:编程语言   时间:2014-09-09 11:27:48    阅读次数:224
Storm thrift获取性能数据报错及解决
我们想通过Storm提供的thrift接口来获取Toplogy的性能数据,比如emiited了多少,延迟是多少之类。但在使用Python开发过程中,发现getClusterInfo这个方法,会报错,thrift版本0.7,Storm版本为0.9.0.1,错误如下:Traceback (most re...
分类:其他好文   时间:2014-09-09 11:22:18    阅读次数:167
python的基本数据结构之列表
Python的列表就像数组一样。定义一个空列表:a=[]a=list()生成列表可以用列表推导式来生成一个列表:ls1=[1,2,3,4]ls2=[x*x for x in lst1]# ls2=[1,4,9,16] 列表的一些方法:定义一个列表lsls.append(x)在列表尾部追加一个元素,等...
分类:编程语言   时间:2014-09-09 11:02:18    阅读次数:311
Python-数据结构
ListList中的内容并不一定只有一种类型,一个List中可能既有number,又有string,还可能有子ListList用[]表示List的基本方法有:append,sort等要从一个List中删除某元素,可以使用del函数(它不是List的方法)#!/usr/bin/pythonmylist...
分类:编程语言   时间:2014-09-09 10:58:18    阅读次数:290
Learn Python From 'Head First Python' [2] : Sharing
1.publish2.update print_lolPS:for Step 1.write the code in to a py file. put the py file into a folder named nester. new a py file named 'setup' and t...
分类:编程语言   时间:2014-09-09 10:44:28    阅读次数:309
python中将汉字转换成拼音
python3.4环境,在3.0以下的版本有些地方不一样,可自行修改。可转换全部文章,唯一缺陷就是标点符号正常无法转换。以后想到再做修改。 1 #coding=gbk 2 ''' 3 Created on 2014-8-29 4 5 @author: Administrator 6 ''' 7 #....
分类:编程语言   时间:2014-09-09 10:35:48    阅读次数:466
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!