<code># 寫文件 方法一
f = open("20200316.txt",'w')
f.write("hello world!")
f.close()/<code>
<code># 方法二
with open("20200316_1.txt",'w') as f:
f.write("你好!")/<code>
閱讀更多 紅塵小生 的文章
2020-03-16 19:14:43 紅塵小生
<code># 寫文件 方法一
f = open("20200316.txt",'w')
f.write("hello world!")
f.close()/<code>
<code># 方法二
with open("20200316_1.txt",'w') as f:
f.write("你好!")/<code>
閱讀更多 紅塵小生 的文章