📜  列表到字符串 python 代码示例

📅  最后修改于: 2022-03-11 14:47:02.734000             🧑  作者: Mango

代码示例6
import random
n = random.sample(range(1,51214), 5)
listToString = ''.join([str(elem) for elem in n]) 
print(n)
print(listToString)