Discuss / Python / Python 3 字符串的格式化

Python 3 字符串的格式化

Topic source

magicoding

#1 Created at ... [Delete] [Delete and Lock User]

Python 3 字符串的格式化,请使用新的 str.format(*args, **kwargs) -> str 替代旧的 % 运算符,更灵活更好用。

refs:

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

新的方式也推荐使用


  • 1

Reply