2021-03-24
阅读量:
1197
python报错TypeError: unsupported operand type(s) for +: 'int' and 'str'
问:
python报错TypeError: unsupported operand type(s) for +: 'int' and 'str'
答:
这是因为变量j的取值为字符型“a”,字符型变量不支持加法运算,因此出现类型错误。






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
1条评论