为什么在Pycharm中运行字符串模板替换的函数会报错呢?
收起
from string import Template str = 'type ${Typething} is ${money}' print( Template(str).substitute( {'Typething':'tool','money': 68 } ) )
报告相同问题?