摘要: 英文文档: 返回 unicode 字符对应的整数 2. 其功能和chr函数刚好相反。 阅读全文
posted @ 2017-12-29 15:33 lincappu 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class memoryview(obj) 根据输的内容创建一个内存查看对象。 说明: 1. 函数功能返回内存查看对象,实际上是内存查看对象(Momory view)的构造函数。 2. 所谓内存查看对象,是指对支持缓冲区协议的数据进行包装,在不需要复制对象基础上允许Python代码访问。 阅读全文
posted @ 2017-12-29 15:32 lincappu 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class bytes([source[, encoding[, errors]]]) Return a new “bytes” object, which is an immutable sequence of integers in the range 0 <= x < 256. b 阅读全文
posted @ 2017-12-29 15:31 lincappu 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class bytearray([source[, encoding[, errors]]]) Return a new array of bytes. The bytearray class is a mutable sequence of integers in the range 阅读全文
posted @ 2017-12-29 15:30 lincappu 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class str(object='') class str(object=b'', encoding='utf-8', errors='strict') Return a string version of object. If object is not provided, retu 阅读全文
posted @ 2017-12-29 15:28 lincappu 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class complex([real[, imag]]) Return a complex number with the value real + imag*1j or convert a string or number to a complex number. If the fi 阅读全文
posted @ 2017-12-29 15:25 lincappu 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class float([x]) Return a floating point number constructed from a number or string x. If the argument is a string, it should contain a decimal 阅读全文
posted @ 2017-12-29 15:23 lincappu 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class int(x=0) class int(x, base=10) Return an integer object constructed from a number or string x, or return 0 if no arguments are given. If x 阅读全文
posted @ 2017-12-29 15:22 lincappu 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 英文文档: class bool([x]) Return a Boolean value, i.e. one of True or False. x is converted using the standard truth testing procedure. If x is false or o 阅读全文
posted @ 2017-12-29 15:15 lincappu 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 英文文档: sum(iterable[, start]) Sums start and the items of an iterable from left to right and returns the total. startdefaults to 0. The iterable‘s item 阅读全文
posted @ 2017-12-29 15:05 lincappu 阅读(1000) 评论(0) 推荐(0) 编辑