擅长:python、mysql、java
<p>要从列表的元素创建字符串,请执行以下操作:</p>
<pre><code>my_list_1 = ['a', 'c', 'e']
my_list_2 = [1, 3, 5]
# The "join" works for both when list's element type is "string" or "int"
list_1_str = ''.join(map(str, my_list_1))
# output: "ace"
list_2_str = ''.join(map(str, my_list_2))
# output: "135"
</code></pre>