关于#python#的问题:argument of type 'float' is not iterable2. 在if前写入 x=str(x)爆错 TypeError
1.报错:TypeError: argument of type 'float' is not iterable 2. 在if前写入 x=str(x)爆错 TypeError: string indices must be integers 3.在x【“”】后面加 .astype(str)报错 AttributeError: 'str' object has no attribute 'astype' 尝试了多种都不行
你传进去的x必须得是一个dict,或者是别的啥的。反正不能是str,这个指定报错。
float' is not iterable 不可迭代,你传进去的数据不对,你这里应该是读取一列数据,然后判断,你这里判断语句也不对,应该是这样(举个例子) if ( ”广州地呼“ in x['团队'] and ”广州地呼“ in x['管理'])