单继承:class ClassCaculator(object): def __init__(self, A, ...
python安装pip及beautifulsoup4
1、下载pip源码 https://pypi.python.org/packages/source/p/pip/pip-6.1.1.tar.gz#md5=6b19e0a934d982a5a4b798e...
python发送邮件模块(支持读写ini配置文件)
1、支持ini配置文件读写 2、支持中文编码邮件 邮件发送主体部分SendMail.py:#!/usr/bin/env python # -*- coding: ...
python时间函数和常用格式化
使用之前import: import time,datetime 下面的函数在python2.7里可以正常运行,但python2.4可能不支持某些方法。比如python2.4.3中报错: Attrib...
Python与其他语言结合的参数转换函数PyArg_ParseTuple()
The PyArg_ParseTuple() function is declared as follows: int PyArg_ParseTuple(PyObject *arg, char *fo...
python获取系统信息
import platform import os import sys import platform def machine(): &...
python学习之:socket模块初探
import socket import sys import zlib def tcpSend(sock): ...
CentOS中安装wxpython
1.安装 rpmforge , epelwget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm &...
wxpython教程
http://wxpython.cn/
python中使用PyInstaller打包应用程序
E:\PyInstaller-2.1>python pyinstaller.py -F -w -n NewName /your/file/path