python
往事也加
ru yu de shui
展开
-
python version 2.7 required,which was not found in the registry
方法:新建一个registertest.py 文件,把以下代码贴进去,保存,然后按F5运行即可 # # script to register Python 2.0 or later for use with win32all # and other extensions that require Python registry settings # # written by Joakim转载 2016-06-13 15:10:44 · 400 阅读 · 0 评论 -
SOCKET简介
SOCKET类型socket(family,type[,protocal]) 使用给定的地址族、套接字类型、协议编号(默认为0)来创建套接字。 socket类型 描述 socket.AF_UNIX 只能够用于单一的Unix系统进程间通信 socket.AF_INET 服务器之间网络通信 socket.AF_INET6 IPv6 socket.SOCK_STREAM转载 2016-08-16 16:24:45 · 488 阅读 · 0 评论 -
Python脚本性能剖析-cprofile
Introduction to the profilerscProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how long various parts of the pro转载 2016-08-28 23:21:06 · 622 阅读 · 0 评论 -
python类型转换、数值操作 和 mysql的字符串函数
python类型转换、数值操作类型转换 函数 描述 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x ) 将对象 x 转换为表达式字转载 2016-10-14 15:51:09 · 5409 阅读 · 1 评论