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

제목[re]file 수업 관련 질문입니다2021-10-24 21:15
작성자

file = open("file_example.txt", "r") 코드에서

"file_example.txt" 부분을 file_example.txt의 절대경로나 상대경로로 작성해보시고 그래도 오류가 난다면 댓글을 달아주실 수 있을까요??


- 절대경로 예시(본인의 환경에 맞게 변경하시면 됩니다.)

file = open("C:/Users/wow/Desktop/file_example.txt", "r") 

- 상대경로 예시

file = open("./file_example.txt", "r")  

댓글
이전file 수업 관련 질문입니다2021-10-24
다음'file'수업 관련 문의2021-10-21