2024-06-25 23:41:02 发布
网友
我在第一次迭代中得到了TypeError: cannot serialize ('John',) (type tuple)。为什么SELECT name FROM potluck输出'John',,而不是{}?在
TypeError: cannot serialize ('John',) (type tuple)
SELECT name FROM potluck
'John',
('John',) ('Sandy',) ('Tom',) ('Tina',)
不管怎样,我不知道问题是不是这个。在
试试这个:
child.text = row[0]
元素的文本字段通常是单个字符串。在
参考号:http://docs.python.org/2/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.text
试试这个:
元素的文本字段通常是单个字符串。在
参考号:http://docs.python.org/2/library/xml.etree.elementtree.html#xml.etree.ElementTree.Element.text
相关问题 更多 >
编程相关推荐