[Python] 아스키코드 변환

잘딱·2023년 9월 11일
0
post-thumbnail

숫자 -> 문자 (chr 함수)

print(type(chr(65)), chr(65))

output : <class 'str'> A

문자 -> 숫자 (ord 함수)

print(type(ord('A')), ord('A'))

output : <class 'int'> 65

0개의 댓글