WRITE FILES using Python! (.txt, .json, .csv)
Thereareseveralwaystopresenttheoutputofaprogram;datacanbeprintedinahuman-readableform,orwrittentoafileforfutureuse.,TocreateafileinPython,youcanusetheopen()functionwiththe'a'modesuchasfile=open('myfile.txt','a').Thisfunctionopensa ...PythonFileCr...。參考影片的文章的如下: