摘要: 英文文档: setattr(object, name, value) This is the counterpart of getattr(). The arguments are an object, a string and an arbitrary value. The string may 阅读全文
posted @ 2016-11-14 23:04 十月狐狸 阅读(1260) 评论(0) 推荐(0) 编辑
摘要: 英文文档: 说明: 1. 传入一个可迭代对象,生成一个新的集合。 2. 不传入参数时,生成一个新的空集合。 3. 返回的集合是可以修改的。 阅读全文
posted @ 2016-11-14 22:52 十月狐狸 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: 英文文档: The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: i 阅读全文
posted @ 2016-11-14 00:14 十月狐狸 阅读(1644) 评论(0) 推荐(0) 编辑
摘要: 英文文档: 说明: 1. 函数功能是反转一个序列对象,将其元素从后向前颠倒构建成一个新的迭代器。 2. 如果参数不是一个序列对象,则其必须定义一个__reversed__方法。 阅读全文
posted @ 2016-11-14 00:13 十月狐狸 阅读(6167) 评论(0) 推荐(0) 编辑