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