python自帶函數(shù)——文件寫入
提問人:楊紫紅發(fā)布時間:2020-11-18
>>> test_file = open('c:\\myfile.txt', 'w')
>>> test_file.write('What is green and loud? A froghorn!')
>>> test_file.close()
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
>>> test_file = open('c:\\myfile.txt', 'w')
>>> test_file.write('What is green and loud? A froghorn!')
>>> test_file.close()
點擊加載更多評論>>