我有这个循环.有smarter种方法可以做到这一点吗?
example = [('tes1', 'test2'), ('test3', 'test4')]
string = ''
for i, tuple in enumerate(example):
string = string + ' '.join(tuple)
if i != len(example) - 1:
string += ', '
print(string)
我想通过.Join()来实现,但不知道如何实现.