기본값
import os
print('')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
문자열로 숫자 입력
import os
print('1')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
소문자 영어
import os
print('a')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
대문자 영어
import os
print('A')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
한글
import os
print('ㄱ')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
한글
import os
print('깎')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
띄어쓰기
import os
print(' ')
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
숫자형
import os
print(1)
file_size = os.path.getsize(os.path.realpath(__file__))
print(f'File Size: {file_size} bytes')
'Programming Language > Python' 카테고리의 다른 글
[Python] 모든 환경변수를 읽는 방법 (0) | 2022.11.23 |
---|---|
[Python] 환경변수를 파이썬으로 읽는 방법 (0) | 2022.11.21 |
[Python] 함수가 아닌 클래스 내부는 먼저 실행된다 (0) | 2022.11.21 |
[Python] 리스트 반복문시 정방향 역방향 속도 비교하기 (2) | 2022.09.23 |
[Python] 빈 리스트에 append 하는 것과 리스트 반복문 한줄 비교 (2) | 2022.09.23 |