-
import pathlib file_name = "sample.txt" current_path = pathlib.Path(__file__).parent with open(current_path.joinpath(file_name)) as f: set_samples = set(map(str.strip, f)) #파일을 라인단위로 읽어 set 으로 만든다.