如何在Python里去掉列表的方括号和引号

如何在Python里去掉列表的方括号和引号

加个*号就行了

温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-06-03
# -*- coding: utf-8 -*-
list = ['1','2','3']
print ','.join(list)
print map(int,list)
.
>>> 
1,2,3
[1, 2, 3]
>>>
不知道是不是你说的意思

本回答被网友采纳
相似回答