mirror of
https://github.com/SwareJonge/mkdd.git
synced 2024-11-23 13:29:54 +00:00
12 lines
288 B
Python
12 lines
288 B
Python
from argparse import ArgumentParser
|
|
|
|
parser = ArgumentParser()
|
|
parser.add_argument("input")
|
|
parser.add_argument("output")
|
|
args = parser.parse_args()
|
|
|
|
with open(args.input, encoding="utf-8") as f:
|
|
txt = f.read()
|
|
|
|
with open(args.output, 'w', encoding="shift-jis") as f:
|
|
f.write(txt) |