#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목Lecture12-1_File1 에 관한 질문입니다2022-04-27 00:19
작성자

다음 코드에서

data = hopedale_file.readline().strip()

while data.startwsith('#'):

data = hopedale_file.readline().strip() 이라고


'data = hopedale_file.readline().strip()'이걸 먼저쓰고 while문을 실행하는 이유는 무엇인가요?

그냥 

while data.startwsith('#'):

data = hopedale_file.readline().strip()

이렇게만 사용하면 안되나요?



댓글
이전[re]file 관련 질문2022-04-27
다음[re]Lecture12-1_File1 에 관한 질문입니다2022-04-27