program/python
[python] 파일 쓰기
momoa210
2024. 1. 28. 17:29
# w 는 덮어쓰기 a 기존 데이터에 추가로 작성하기
with open("data/new_file.txt", 'w') as f:
f.write("new test file\n")