[Python] Template literals f\"\"

The same as Javascript:

// Javascript
function sayHello(name) {
    return `Hello ${name}`
}

//python
def say_hello(name):
    return f"Hello {name}"

相关推荐