python之字符串格式化方法str.format()详解
字符串格式化方法str.format()功能十分强大,在平时应用也比较多,今天我们来了解一下str.format()方法 >>> help(str.format) Help on method_descriptor: format(...) S.format(*args, **kwargs) -> str Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces ('{' and '}').
用户评论