美文网首页
python错误

python错误

作者: b__d | 来源:发表于2019-03-13 15:16 被阅读0次

运行后出现下面的错误:

TypeError: unsupported operand type(s) for +: 'datetime.date' and 'str'

原因是数据类型不正确,不可以用“+”

数字型和字符型显示如下:

python错误

为了完成上述图片中的文档生成,进行了强制类型转换

python错误

相关文章

网友评论

      本文标题:python错误

      本文链接:https://www.haomeiwen.com/subject/oiftmqtx.html