readable() 메서드는 파일을 읽을 수 있으면 True를 반환하고 읽을 수 없으면 False를 반환합니다.
매개변수는 없습니다.
파일을 읽을 수 있으면 True를 반환하고 읽을 수 없으면 False를 반환합니다.
f = open("demofile.txt", "r") print(f.readable())
결과
True
14 FastApi에서 에러가 뜨는데 ERROR: Error loading ASGI app. Import string "main" must be in format ":". 해결 방법
11 Python에서 exception이 생긴 라인 숫자값을 어떻게 구할 수 있나요?
16 Flutter 에러 Member not found: 'UnicodeChar' 해결 방법
13 Pytube 쓸 때 pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple 에러 해결방법
12 python에서 에러가 생겨도 계속 실행하는 방법
© 2022 pinfo. All rights reserved.