Python little knowledge

str.format()

作用:替换str中的替代变量。

 “I am {}”.format("NIcklas")

https://blog.csdn.net/jpch89/article/details/84099277

原文地址:https://www.cnblogs.com/dulun/p/14858806.html