Torus Solutions 改

Ello 2020-03-15T06:58:47.992Z

平成と令和。

    m = re.search('(平成|令和)(元|\d+)年(\d+)月(\d+)日', index)
    year = (1988 if m[1] == '平成' else 2018) + (1 if m[2] == '元' else int(m[2]))

#python