我有以下方式的列表:
foo=[21, 38, 38, 56, 23, 19, 11, 15, 19, 13, 20, 6, 0, 8, 0, 10, 11, 0, 11, 8, 12, 5]
我想把它转换成类似的东西:
bar=21, 38, 38, 56, 23, 19, 11, 15, 19, 13, 20, 6, 0, 8, 0, 10, 11, 0, 11, 8, 12, 5
这应该怎么做?我试过bar=''.join(foo)
了,但这给了我一条错误消息。
我有以下方式的列表:
foo=[21, 38, 38, 56, 23, 19, 11, 15, 19, 13, 20, 6, 0, 8, 0, 10, 11, 0, 11, 8, 12, 5]
我想把它转换成类似的东西:
bar=21, 38, 38, 56, 23, 19, 11, 15, 19, 13, 20, 6, 0, 8, 0, 10, 11, 0, 11, 8, 12, 5
这应该怎么做?我试过bar=''.join(foo)
了,但这给了我一条错误消息。