我不确定python doc:
A call to format(value, format_spec) is translated to
type(value).__format__(format_spec) which bypasses the
instance dictionary when searching for the value’s
__format__() method.
是错字吗?我觉得应该翻译成:
type(value).__format__(value, format_spec)