我踩过的python的坑

1. string中Template用法

变量名不能是${tradeDate+1}, python无法识别其为变量,应改为 ${tradeDate1}

变量替换的语句:data_new = Template(data_old.substitute(dict))

posted @ 2021-11-17 18:55  千鱼千寻  阅读(25)  评论(0编辑  收藏  举报