错误:EOL while scanning string literal
出错语句:
note_str_1 = Template('${沉重}${*}于****大于5年。)
字符串没有对称出现
note_str_1 = Template('${*}${*}于****大于5年。')
写代码要小心啊
随后继续运行代码,出现问题
错误:ValueError: Wrong number of items passed 11, placement implies 1
上面传输的数据为0 所以要检查一下前面运行的代码是否有数据存进去。嗯,是因为上面建立的df没有数据。
改过之后,出现下述错误
错误:ValueError: Invalid placeholder in string: line 1, col 1
最后排除原因 是因为${沉重} 这里面是中文!
离谱 改为 ${chenzhong}
就可以了