파이썬 파일 수정
조회수 4334회
-
(•́ ✖ •̀)
알 수 없는 사용자
1 답변
-
일단 원하시는 것의 각본("script")을 영어로 써보실게요. 그럼 이렇게 되거든요.
prepare a blank text, as New Text. open "test.txt", as Original Text. for every line in Original Text : if "안녕" is in the line : replace every "안녕" in the line with "하세요". add the line to New Text. save New Text as a file. the end.
자 이제 파이썬 기초 강좌를 읽어보실께요. 네 맞아요. 직접 하실 수 있어요.
댓글 입력