摘要: 1.abs() : i=abs(-123) 取绝对值 2.all():循环参数,如果每个元素都为真,那么all的返回值为真 bool(0)为假,其他数值都为真 None,"",[],(),{},都为假 3.any():只要有一个为真,则为真 4.ascii(对象):对象的类中找__repr__,获取 阅读全文
posted @ 2018-02-27 17:22 sonofthesea 阅读(89) 评论(0) 推荐(0) 编辑
摘要: def f1(): return 123 f2 = lambda:123 阅读全文
posted @ 2018-02-27 14:06 sonofthesea 阅读(81) 评论(0) 推荐(0) 编辑