Q : 다음은 “test.txt”라는 파일에 “Life is too short” 문자열을 저장한 후 다시 그 파일을 읽어서 출력하는 프로그램이다.
1 | f1 = open("test.txt", 'w') |
이 프로그램은 우리가 예상한 “Life is too short”라는 문장을 출력하지 않는다. 우리가 예상한 값을 출력할 수 있도록 프로그램을 수정해 보자.
answer
1 | f1 = open("test.txt", 'w') |
1 | f1 = open("test.txt", 'w') |
1 | f1 = open("test.txt", 'w') |
Author: Slay
Permalink: http://sean-baek.github.io/2022/08/27/2022-08-21-jump2python-exercises-answer-4-5/
License: Copyright (c) 2021 CC-BY-NC-4.0 LICENSE
Slogan: Do you believe in DESTINY?