Python Draft | Character to Integer, Integer to Character

·

Character to Integer

ord('A') # 65
ord('Z') # 90
ord('a') # 97
ord('z') # 122

Integer to Character

chr(65) # A
chr(90) # Z
chr(97) # a
chr(122) # z
  • 알파벳은 26자이다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다