就是根据值,来分派。有可能实现吗
比如值是 1,或 2 这样
|  |      1leishi1313      2019-07-09 09:57:12 +08:00 via Android let me google that for you https://lmgtfy.com/?q=Singledispatch+based+on+value+instead+of+type | 
|      2princelai      2019-07-09 10:03:03 +08:00 好像没有这样的装饰器或方法吧,自己写个函数,内部 if else 判断下? | 
|  |      4goofool      2019-07-09 12:06:39 +08:00 定义自己的 int 类 |