file parameter of Python's print() Function - GeeksforGeeks

文章推薦指數: 80 %
投票人數:10人

print() function in Python3 supports a 'file' argument, which specifies where the function should write a given object(s) to. Note : The 'file' parameter is found only in Python 3. Output : Output (in “samplefile.txt”) : GeeksForGeeks. Skiptocontent Tutorials Algorithms Analys



請為這篇文章評分?