こちらのツイートのソースコードです。 https://twitter.com/Engr_Coal33/status/1341639508656189443
千字文を使った千進数に相互変換できるやつをPythonで書いてみた https://t.co/OHtglK7uMV pic.twitter.com/GTMfcIzqTS
— Coal (@Engr_Coal33) December 23, 2020
ダウンロードして、Python で実行してください。
$ git clone https://github.com/Coal33/1000-base.git
$ cd 1000-base
$ python3 1000-base.py
10 進のアラビア数字を入力すると千字文千進数に、千字文千進数を入力すると 10 進のアラビア数字に変換されます。
実行例
$ python3 1000-base.py
5006
5006 => 宇宙
$ python3 1000-base.py
上皇
上皇 => 329080
$ python3 1000-base.py
36037
36037 => 雨露
$ python3 1000-base.py
令和二年
令和二年 => 296330415945
$ python3 1000-base.py
1002079
1002079 => 天地人