Using PRINT statements to print to a file in Python #shorts

preview_player
Показать описание
print() has an optional file= parameter that you can set to print straight to any open file with the file handler.
Рекомендации по теме