阅读背景:

TypeError:'int'对象不可迭代 - Python

来源:互联网 

I got the following error:

我收到以下错误:

  File "/home/ec2-user/test/test_stats.py", line 43, in get_test_ids_for_id
    cursor.execute("""select test_id from test_logs where id = %s """, (id))
  File "/home/ec2-user/.etl/lib/python2.7/site-packages/MySQLdb/cursors.py", line 187, in execute
    query = query % tuple([db.literal(item) for item in args])
TypeError: 'int' object is not iterable
  File 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: