getstate
Arthas - getstatic命令 - 监控静态字段
问题背景 想监控,这个非static类下面,的一个static变量的内容 解决方案 getstatic com.huatai.quant.service.request.ScenarioNatsRequestResponseService bookFundingCostCacheMap 当监视的st ......
(第八篇)__format__、__hash__、__init_subclass__、__reduce_ex__、__reduce__、__sizeof__、__setstate__、__getstate__
一、__format__(self, format_spec) 当我们使用format()方法对一个对象进行格式化时,如果这个对象有__format__方法,那么这个方法就会被调用。它接受一个变量作为参数,并返回一个格式化后的字符串。 class Person: def __init__(self, ......