/
rnekrasov
/
Python
Обзор
Документация
Войти
/
rnekrasov
/
Python
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
testlines.py
18 строк
446 B
slowy07
refactor: clean code
30 янв 2022, 04:33
30 янв 2022, 04:33
f0af0c4
Код
Авторство
О чём код?
# Script Name : testlines.py # Author : Craig Richards # Created : 08th December 2011 # Last Modified : # Version : 1.0 # Modifications : beven nyamande # Description : This is a very simple script that opens up a file and writes whatever is set " def write_to_file(filename, txt): with open(filename, "w") as file_object: s = file_object.write(txt) if __name__ == "__main__": write_to_file("test.txt", "I am beven")