filename="output.txt"
f = open(filename, "w")
f.write("Hello World")
f.close()
f2 = open(filename, "r")
data = f2.read()
print(data)
f2.close()'Python' 카테고리의 다른 글
| miniconda 설치 (0) | 2024.05.17 |
|---|---|
| Python-3.12.1 - 소스컴파일, 쥬피터용 가상환경 (0) | 2024.02.02 |
| pip이용하여 requirements.txt 만들기 / 설치하기 (0) | 2024.02.02 |
| python cmd로 jupyter 설치 (0) | 2024.02.02 |
| Jupyter에서 bash 명령하기 (0) | 2024.01.28 |