ord( ) - 문자를 아스키 코드로 변환해 주는 함수
chr( ) - 아스키 코드(숫자)를 문자로 변환해 주는 함수
ord('a') => 97
chr(97) => a
'Python' 카테고리의 다른 글
[python] 에러 해결: AttributeError: partially initialized module '---' has no attribute '---' (0) | 2022.06.13 |
---|---|
[python] 딕셔너리에서 최대값의 키 값 추출하기 (0) | 2022.03.04 |
[python] 실행 시 ModuleNotFoundError: No module named 'bluetooth' 해결법 (0) | 2022.02.07 |
plt 축 제거하고 이미지만 저장하기 (0) | 2021.10.03 |