[Python] Template literals f""
2021-01-02 16:29
阅读:700
标签:func UNC fun ack back style span return div The same as Javascript: [Python] Template literals f"" 标签:func UNC fun ack back style span return div 原文地址:https://www.cnblogs.com/Answer1215/p/12994453.html
// Javascript
function sayHello(name) {
return `Hello ${name}`
}
//python
def say_hello(name):
return f"Hello {name}"
上一篇:SpringMVC重点分析
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:[Python] Template literals f""
文章链接:http://soscw.com/index.php/essay/39616.html
文章标题:[Python] Template literals f""
文章链接:http://soscw.com/index.php/essay/39616.html
评论
亲,登录后才可以留言!