在Python中加入int列表的最简单方法?

ada*_*ith 2 python

加入一个ints 列表以形成一个str没有空格的最方便的方法是什么?
例如[1, 2, 3]会转'1,2,3'.(没有空格).

我知道','.join([1, 2, 3])会引发TypeError.

Dai*_*air 5

print ','.join(map(str,[1, 2, 3])) #Prints: 1,2,3
Run Code Online (Sandbox Code Playgroud)

映射 str 可以防止TypeError


Eri*_*lun 5

','.join(str(x) for x in ints)
Run Code Online (Sandbox Code Playgroud)

应该是最恐怖的方式.