摘要: 使用官方的说法: classmethod(function) 中文说明: classmethod是用来指定一个类的方法为类方法,没有此参数指定的类的方法为实例方法,使用方法如下: class C: @classmethod def f(cls, arg1, arg2, ...): ... 看后之后真 阅读全文
posted @ 2023-03-07 14:12 Littlefish- 阅读(28) 评论(0) 推荐(0) 编辑
摘要: from tenacity import * def return_last_value(retry_state): print("执行回调函数") return retry_state.outcome.result() # 表示返回原函数的返回值 def is_false(value): retu 阅读全文
posted @ 2023-03-07 11:21 Littlefish- 阅读(50) 评论(0) 推荐(0) 编辑
Document