https://docs.python.org/3/reference/datamodel.html#object.format
object.__format__(self, format_spec)
当对象作为参数传给format()
方法时调用
参考:
https://www.cnblogs.com/xiaobingqianrui/p/8547842.html
https://docs.python.org/3/reference/datamodel.html#object.format
object.__format__(self, format_spec)
当对象作为参数传给format()
方法时调用
参考:
https://www.cnblogs.com/xiaobingqianrui/p/8547842.html