0
点赞
收藏
分享

微信扫一扫

Python, unsupported operand type(s) for *: ‘int‘ and ‘NoneType‘

小布_cvg 2022-02-16 阅读 191
File "<__array_function__ internals>", line 6, in dot
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'

使用dot时,左右两边类型不同,函数没有返回值,默认返回None

一般出现:TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'。都是返回值为 None 了

举报

相关推荐

0 条评论