已采纳回答 / qq_慕少3205394
template='Life is short,you need {P}' P='python' result=template.format(P=P) print(result)P相当于占位符,没有给他赋值
2020-09-08
已采纳回答 / 慕先生5347740
我觉得这是imooc的IDE本身的问题,我在命令行和python的编辑器中尝试了之后,print('hello', 'python') 打印出来的就是hello,python
2020-09-06