A straight-forward for loop gives your desired output:
data = [['id', 'host'], [1, '123']]
for d in data:
print(*d)
If there's a problem with that approach, it's not apparent in your question.
If you're trying to produce a str
result you can use a pair of join
calls to convert the inner elements to str
then join with spaces, then join those lines with '
'
data = [['id', 'host'], [1, '123']]
result = '
'.join(' '.join(str(e) for e in d) for d in data)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…