我不确定python文档:
format(value[, format_spec])
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)
Tags:
是的,^{} special method 的文档有签名:
是的,你说得对。以下代码。。。你知道吗
调用。。。你知道吗
相关问题 更多 >
编程相关推荐