文字⇔数字変換
code: chr_int.py
unit = "a"
def chr_to_int(c):
return ord(c) - ord(unit)
def int_to_chr(i):
return chr(i + ord(unit))