我有一个元组
tup = ('\x00\x05(^\x9a\xdd\x1c\xb3\xe0T\x00!(\xa8z\xd8', 0, 'ABC', 0, None, None, None, None, None, None, None)
我想用管道分隔的字符串
转换它\x00\x05(^\x9a\xdd\x1c\xb3\xe0T\x00!(\xa8z\xd8|0|ABC|0|None|None|None|None|None|None
我正在做这样的事情并得到以下错误
''.join(tup)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: sequence item 1: expected string, int found