Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the mode of path_to_file_list and defined 'lines' #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pjy8584
Copy link

@pjy8584 pjy8584 commented Jun 1, 2024

기존의 main.py 5-6 lines에서

li = open(path, 'w')
return lines 를

with open(path, 'r') as file:
lines = file.read().splitlines()
return lines 로 수정

기존 코드는 파일을 쓰기 모드로 열기 때문에 내용을 읽어오지 못하여
읽기 모드로 변경하여 파일 내용을 가져오도록 수정

또한 lines 변수가 정의되지 않았기 때문에 정의하여 수정

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant