@[TOC](TypeError: int() argument must be a string, a bytes-like object or a number, not ‘map’)
将python2代码改为python3代码时,可能出现该问题
在python2中,map返回一个list,但是在python3中,map返回的则是一个迭代。解决办法是:在map函数外层加一个list显示转换一下就可以了。即list(map())。
TypeError: int() argument must be a string, a bytes-like object or a number, not 'map'
最新推荐文章于 2024-03-05 22:14:42 发布