参考: Python: call a function from string name 在PHP开发中,有个方法叫做:call_user_function() 通过这个方法,PHP可以传入函数名字(...
【整理】PyQt开发工具Eric 6配置
在Linux或者windows系统完成Eric 6的安装后,需要对Eric 6进行一下配置,方便PyQt的开发。 配置过程如下: 1:选择Eric6-> preference -> Edi...
【整理】CentOS 7安装Qt 4.8.7 + PyQt 4.8.7 + Python 3.4.3 + Eric 6
本教程整理了在CentOS 7系统之上搭建 PyQt 的开发环境,主要软件版本如下: Python:3.4.3 PyQt:PyQt4_gpl_x11-4.12.1 Qt:4.8.7 QScintill...
【整理】UnicodeDecodeError: ‘gbk’ codec can’t decode bytes in position
参考:http://www.jb51.net/article/16104.htm Python遇到转码问题,有时候非常难解决,尤其遇到一些异常字符,比如下面: UnicodeDecodeError: ...
【整理】Python如何保持TCP心跳
参考:How to change tcp keepalive timer using python script? 参考:https://delog.wordpress.com/2013/08/16/...
【整理】windows下Python如何更新pip模块
参考来源:http://stackoverflow.com/questions/15221473/how-do-i-update-pip-itself-from-inside-my-virtual-e...
【整理】PyInstaller针对包含Python3.4, PyQt, Pandas, Multiprocess的程序打包
最近使用PyInstaller对我的Python程序打包。 环境:Python 3.4.3 32 bit+PyQt 4.8.7 for py3.4 32 bit + Pandas + Multipro...
【整理】Pyinstaller打包多进程程序
参考:PyInstaller-built Windows EXE fails with multiprocessing PyInstaller Recipe Multiprocessing 打包带多进...
【整理】Python对list中的list排序, Python嵌套list排序
原链接:How to sort a list of lists by a specific index of the inner list? from operator import itemgett...
【分享】Python – 了解bytes、str与unicode的区别
Python的字符串编码很容易把人搞混,分享一篇文章,用来解释python 2.x 与 3.x的编码。 Python3有两种表示字符序列的类型:bytes和str。前者的实例包含原始的8位值,后者的实...