将mat数据导入至Python中,对数据集的实部进行提取时报错TypeError: float() argument must be a string or a number, not 'dict',怎么解决?
如何将float转换为string or a number?
Python报错TypeError怎么解决
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
3条回答 默认 最新
CSDN专家-天际的海浪 2021-07-15 00:03关注这个报错TypeError: float() argument must be a string or a number, not 'dict'
是说float()的参数必须是字符串或数字,而不是字典“dict”
你给float()中传的参数是字典本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报