pylab 由 三个部分组成:scipy, matplotlab, numpy三部分组成,安装时需要分别安装这三部分,在fedora中,可以使用命令:sudo dnf install python-matplotlib python3-matplotlibsudo dnf install scipy...
分类:
其他好文 时间:
2015-09-17 23:15:11
阅读次数:
352
Python Socket API参考出处:http://blog.csdn.net/xiangpingli/article/details/47706707使用socket.recv(pack_length)接收不定长的数据,如果数据包长度超过一定值,则接收的数据不全。参照python3.4的文档...
分类:
编程语言 时间:
2015-09-17 19:04:24
阅读次数:
1554
今天在新的一台电脑上安装了pip。流程有点忘记了,在这里再次记录下来。 本教程基于python3.4,并且需要连接互联网,总共需要两步。 1、要安装pip,首先要安装setuptools,链接:https://pypi.python.org/pypi/setuptools#windows-p...
分类:
编程语言 时间:
2015-09-17 01:04:16
阅读次数:
213
首先声明这篇学习记录是基于python3的。 python3中,py文件中默认的文件编码就是unicode,不用像python2中那样加u,比如u'中文'。 不过在涉及路径时,比如C:\Users\Administrator\Desktop\StudyNote\Python,还是要加r。 ...
分类:
编程语言 时间:
2015-09-15 23:27:48
阅读次数:
361
为Python3作准备 在开始添加Python 3的支持前,为了能够尽可能地顺利过度到Python 3,你应该通过修改对2to3来说很难苦的东西来给你的代码做一些准备。即使你现在不打算迁移到Python 3,有一些事你也可以现在就做,...
分类:
编程语言 时间:
2015-09-15 18:36:18
阅读次数:
264
环境:ubuntu,python3.41.问题一:以下语句语句是取每行的头元素,其中line应该是一个列表。问题是,line在实际运行中已经不是列表,而变成了列表中的头元素。 {key:line[0] for key,line in list_info.items() if len(line)>0}
分类:
编程语言 时间:
2015-09-15 10:57:55
阅读次数:
144
使用命令:$ sudo yum search PIL | grep python3可显示得知:python3-dogpile-cache.noarch : A caching front-end based on the Dogpile lock.python3-dogpile-core.noarc...
分类:
编程语言 时间:
2015-09-13 19:57:30
阅读次数:
870
题目来源: Conditions and Loops 1 #!/usr/bin/python3 2 # sum all odds between two positive integer 3 4 a = int(input("Please input one positive integer > ....
分类:
其他好文 时间:
2015-09-12 12:04:54
阅读次数:
139
#!/usr/bin/python3import timeimport pymssqlimport urllib.parseimport httplib2import os.pathimport xml.etree.ElementTreeimport cx_Oraclev_curr_datetime...
分类:
数据库 时间:
2015-09-11 12:41:03
阅读次数:
241
迁移策略 制作一个向后不兼容的软件版本是有很高风险的。 当人们需要重写他们的软件或者为了支持两个语言或框架的版本维护割裂的版本时, the risk is that they never make the transition and stay on the old ...
分类:
编程语言 时间:
2015-09-10 11:22:05
阅读次数:
305