摄像头未检测人脸并显示细节

  • 本文关键字:显示 细节 摄像头 python
  • 更新时间 :
  • 英文 :


我的Python代码中出现类型错误

代码:

my_cursor.execute("select Gender from student where Id=" + str(id))
g = my_cursor.fetchone()
g = "+".join(g)

错误:

n="+".join(n)

TypeError:只能加入可迭代的

您可以使用my_cursor作为可迭代结果

my_cursor.execute("select Gender from student where Id=" + str(id))
result = "+".join(my_cursor)

你可以在这里看到更多

最新更新