当前位置:   article > 正文

TypeError: argument of type ‘int‘ is not iterable_typeerror: argument of type 'int' is not iterable

typeerror: argument of type 'int' is not iterable

解决办法:类型的问题。把int 转成str就可以了

------------------------------------------------------------------------------------------------------------

TypeError: argument of type 'int' is not iterable



Traceback (most recent call last):
  File "C:/Users/lenovo/PycharmProjects/DoubleU/TestCase/test.py", line 131, in <module>
    Select(driver.find_elements_by_id('select_tag_id_0')[i]).select_by_value(m)
  File "D:\python2\lib\site-packages\selenium\webdriver\support\select.py", line 78, in select_by_value
    css = "option[value =%s]" % self._escapeString(value)
  File "D:\python2\lib\site-packages\selenium\webdriver\support\select.py", line 219, in _escapeString
    if '"' in value and "'" in value:

TypeError: argument of type 'int' is not iterable

后来解决了,类型的问题。把int 转成str就可以了

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/865203
推荐阅读
相关标签
  

闽ICP备14008679号