# _*_ coding utf-8 _*_
# __author: Jason
# Date: 2018/12/20

'''
按逗号分隔列表。
'''

L = [1,2,3,4,5]

#利用JOIN将通过迭代器生成的字符串进行拼接
s1 = ','.join(str(n) for n in L)
print(s1)
print(type(s1))


L = [1, 2, 3, 4, 5]
L = repr(L)[1:-1]
print(L)
print(type(L))
d0cd6f49f2dc7fe56fb7efc7baa42caaab7fce09
<mask token>

<mask token>
print(s1)
print(type(s1))
<mask token>
print(L)
print(type(L))

<mask token>
L = [1, 2, 3, 4, 5]
s1 = ','.join(str(n) for n in L)
print(s1)
print(type(s1))
L = [1, 2, 3, 4, 5]
L = repr(L)[1:-1]
print(L)
print(type(L))

# _*_ coding utf-8 _*_
# __author: Jason
# Date: 2018/12/20

'''
按逗号分隔列表。
'''

L = [1,2,3,4,5]

#利用JOIN将通过迭代器生成的字符串进行拼接
s1 = ','.join(str(n) for n in L)
print(s1)
print(type(s1))


L = [1, 2, 3, 4, 5]
L = repr(L)[1:-1]
print(L)
print(type(L))