📜  python 字符串插值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.802000             🧑  作者: Mango

代码示例1
def two_fer(name="you"):
    #return "One for " + name + ", one for me."
    #return "One for %s, one for me." % name
    #return "One for {}, one for me.".format(name)
    return f"One for {name}, one for me."