Pythonで書かれたシンプルなモールスコード翻訳者。
https://github.com/willy-r/morse-translator.git
を使用して、このレポをローカルマシンにクローンしますmorse-translator
Directoryに移動します。 $ cd morse-translator
$ pip install -r requirements.txt
通常のテキストをモールスコードの使用に翻訳するには:
$ python morse.py -t TEXT
モールスコードをテキストの使用に翻訳するには:
$ python morse.py -f MORSE
注:両方のオプションの文字がmorse_tables.jsonファイルにない場合、文字は「#」に置き換えられます。
モールスコードサウンドを再生するには、両方のオプションで-s
オプションを使用します。
$ python morse.py -s -t TEXT
$ python morse.py -s -f MORSE
すべてのコマンドを表示するには、 $ python morse.py -h
を入力します。
$ python morse.py -t ' morse code! '
-- --- .-. ... . / -.-. --- -.. . -.-.--
$ python morse.py -t morse
-- --- .-. ... .
$ python morse.py -t 1999
.---- ----. ----. ----.
$ python morse.py -t ' maçã '
-- .- # #
$ python morse.py -f ' -- --- .-. ... . / -.-. --- -.. . -.-.-- '
MORSE CODE !
$ python morse.py -f ' -- --- .-. ... . '
MORSE
$ python morse.py -f ' .---- ----. ----. ----. '
1999
$ python morse.py -f ' -- .- # # '
MA# #
始めるために...
オプション1
オプション2
https://github.com/willy-r/morse-translator.git
を使用して、このレポをローカルマシンにクローンしますhttps://github.com/willy-r/morse-translator/compare
を使用して新しいプル要求を作成します。次の場所のいずれかで私に連絡してください!
@lliw_r
のTwitter