慕设计0015676
2022-11-17 17:38
Life is short, you need Python
。一 template = 'Life is short,you need {}' python = 'Python' result = template.format(python) print(result) 二 template = 'life is short,you need {a}' result = template.format(a='Python') print(result)
法一
template = python = result = template.format(python) (result)
法二
template = result = template.format(=) (result)
Python3 入门教程(新版)
154167 学习 · 1075 问题
相似问题