摘要: method str.format_map(self, mapping), 直接传mapping, 可overwrite __missing__ 阅读全文
posted @ 2023-03-31 12:32 ascertain 阅读(23) 评论(0) 推荐(0)
摘要: decimal_to_binary def decimal_to_binary(v: float, precison: int = 6) -> str: if v == 0: return '0b0' binary = '' integral = int(v) # integral part man 阅读全文
posted @ 2023-03-31 11:35 ascertain 阅读(20) 评论(0) 推荐(0)