Python-將字符串寫入excel/txt文件

因爲以前寫了一篇博客Python-實現將excel裏的中文(漢字)轉對應拼音輸出,我讓結果顯示在控制檯,但有朋友想把它導出到excel/txt文件,因此我就寫如下如何實現吧javascript 1.字符串寫入excel文件,方法一: excel = open("../test/test0401.xlsx", "w").write(result) 1.字符串寫入excel文件,方法二: workbo
相關文章
相關標籤/搜索