본문 바로가기
Python/CodeUp

1036 - 영문자 1개 입력받아 10진수로 출력하기

by GLOWWW 2021. 2. 18.
al = input()
print(ord(al))

ord()는 단일 문자열을 정수로 변환시켜준다.

댓글