擅长:python、mysql、java
<p>在您的案例中,<code>out_string</code>的数据类型是list,它为您提供list列表。要转换,您可以使用join,它将数据类型转换为str,并将list的元素连接到您的case中的“<strong>,</strong>”。你知道吗</p>
<pre><code>VALUE = list(map(int, VALUE))
print(name, VALUE)
with open("data.csv", "a") as out_file:
out_string = ""
out_string += "" + name
out_string += ",".join(VALUE)
out_string += "\n"
out_file.write(out_string)`
</code></pre>
<p>我想它现在会给你想要的输出。你知道吗</p>