Notice
Recent Comments
Link
Tags
- ubuntu node js
- 우분투 node js 설치
- 파이썬 반복문
- 클라우드서버 생성
- node js 버전확인
- node 버전확인
- Python
- 디지털오션 서버생성하기
- C언어
- 우분투 시간변경
- express install
- java 숫자를 문자로 변환하기
- 라즈베리파이4
- ubuntu node js install
- tzselect
- 자바 한줄씩 읽기
- 디지털오션 드로플릿
- 파이썬
- npm버전확인
- node js express install
- c언어 파일 읽기
- 디지털오션 클라우드서버 생성하기
- c file read
- index 생성
- 자바 파일 한줄씩 읽기
- mysql index 생성
- 우분투 시간설정
- Ubuntu timezone
- Node.js express install
- raspi-config
Archives
- Today
- Total
호그래머
Python text 파일 읽기 - 방법1 (파일읽기) 23.06.25 본문
728x90
1. python text파일 읽기
file_path = "D:/WORK/Python/티스토리/230625/test.txt"
with open(file_path, "r") as file:
file_content = file.read()
print("파일 읽기 완료")
print(file_content)
결과
끝
Python으로 text파일을 쉽게 읽을 수 있다.
728x90
'Python' 카테고리의 다른 글
Python for 사용하기 23.06.27 (0) | 2023.06.27 |
---|---|
Python if 사용하기 23.06.26 (0) | 2023.06.27 |
Python text 파일 쓰기 - 방법1 (파일쓰기) 23.06.25 (0) | 2023.06.25 |
Python 날짜, 시간표현 (Date, Time) 23.01.24 (0) | 2023.01.24 |
Python 폴더 생성 (make directory) 23.01.24 (1) | 2023.01.24 |
Comments