小编上官林*_*官林源的帖子

总结列表中的十进制数。Python

我试图打印训练结果,但是无法总结测试精度。

q=(['0.50000', '0.56250', '0.50000', '0.50000'])

sum(q)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Run Code Online (Sandbox Code Playgroud)

python sum

0
推荐指数
1
解决办法
1263
查看次数

标签 统计

python ×1

sum ×1