初识python备忘: 序列:列表,字符串,元组len(d),d[id],del d[id],data in […]
Continue reading作者:test16604225
python文件file输入输出的基本操作方法
1. python 文件i/o 本章只讲述所有基本的的i/o函数,更多函数请参考python标准文档。 2. […]
Continue reading使用python发送和接收邮件实例代码
关于电子邮件 大学之前,基本不用邮箱,所以基本感觉不到它的存在,也不知道有什么用;然而大学之后,随着认识的人越 […]
Continue readingpythontornadowebsocket实时日志展示的实例代码
一、主题:实时展示服务器端动态生成的日志文件 二、流程: 1. 客户端浏览器与服务器建立websocket […]
Continue readingpython小函数字符类型转换方法
python3有两种表示字符序列的类型:bytes和str。前者的实例包含原始的8位值就是的字节,每个字节 […]
Continue reading使用python
这篇文章详解使用python-ldap实现登录方法 ldap_config = { ‘ldap_p […]
Continue readingpython函数和常用模块的详细介绍
递归 反射 os模块 sys模块 hashlib加密模块 正则表达式 反射 python中的反射功能是由以下四 […]
Continue readingpython字符串输入输出的详细介绍
字符串输入 python用到的输入一般有两种方式,input() 和 raw_input() ,区别是,前者只 […]
Continue readingpython2.x默认编码问题解决方法
python2.x中处理中文,是一件头疼的事情。网上写这方面的文章,测次不齐,而且都会有点错误,所以在这里打算 […]
Continue readingpython中enumerate()函数的使用方法
在python中处理各类序列时,如果我们想显示出这个序列的元素以及它们的下标,可以使用enumerate()函 […]
Continue readingpython文件操作的方法介绍
文件操作1.open()函数 open()函数主要用于文件处理,一般分为下面3个过程: 1.打开文件 2.操作 […]
Continue reading详解python异常处理方法
异常 异常(exception)是因为程序的例外、违例、出错等情况而在正常控制流以外采取的行为,一般分为如下两 […]
Continue readingpythonsqlite3以字典形式返回查询结果方法介绍
sqlite3本身并没有像pymysql一样原生提供字典形式的游标。 cursor = conn.cursor […]
Continue readingpythoncumsums和cumprod函数使用方法
这篇文章详解python cumsums和cumprod函数使用方法 >>>a = np.array([1,2 […]
Continue readingpython内置all函数详细介绍
英文文档: all(iterable) return true if all elements of the […]
Continue readingpython内置any函数详细介绍
英文文档: any(iterable) return true if any element of the i […]
Continue readingpython内置ascii函数详细介绍
英文文档: ascii(object) as repr(), return a string containi […]
Continue readingpython内置bin函数详细介绍
英文文档: bin(x) convert an integer number to a binary stri […]
Continue readingpython内置bool函数详细介绍
英文文档: class bool([x]) return a boolean value, i.e. one […]
Continue readingpython标准库itertools模块使用方法
简介 官方描述:functional tools for creating and using iterato […]
Continue readingpython内置bytearray函数详细介绍
英文文档: class bytearray([source[, encoding[, errors]]]) r […]
Continue readingpython内置bytes函数的详细介绍
英文文档: class bytes([source[, encoding[, errors]]]) retur […]
Continue readingpython内置format函数详细介绍
英文文档: format(value[, format_spec]) convert a value to a […]
Continue readingpython内置frozenset函数的详细介绍
英文文档: class frozenset([iterable]) return a new frozense […]
Continue readingpython内置getattr函数的详细介绍
英文文档: getattr(object, name[, default]) return the value […]
Continue readingpython内置globals函数的详细介绍
英文文档: globals() return a dictionary representing the cu […]
Continue readingpython内置hasattr函数的详细介绍
英文文档: hasattr(object, name) the arguments are an object […]
Continue readingpython内置hash函数的详细介绍
英文文档: hash(object)return the hash value of the object ( […]
Continue readingpython内置help函数的详细介绍
英文文档: help([object]) invoke the built-in help system. ( […]
Continue readingpython内置hex函数的详细介绍
英文文档: hex(x) convert an integer number to a lowercase h […]
Continue reading