Ein einfacher Morse -Code -Übersetzer in Python.
https://github.com/willy-r/morse-translator.git
auf Ihre lokale Maschinemorse-translator
Verzeichnis: $ cd morse-translator
$ pip install -r requirements.txt
Um den normalen Text in den Morsecode zu übersetzen: Verwendung:
$ python morse.py -t TEXT
Um den Morsecode zum Text verwenden zu übersetzen:
$ python morse.py -f MORSE
Hinweis : Wenn sich das Zeichen für beide Optionen nicht in der Datei morse_tables.json befindet, wird das Zeichen durch '#' ersetzt.
Um den Morse Code Sound abzuspielen, verwenden Sie die Option -s
-Option in beiden Optionen:
$ python morse.py -s -t TEXT
$ python morse.py -s -f MORSE
Geben Sie $ python morse.py -h
ein, um alle Befehle zu sehen.
$ 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# #
Um anzufangen ...
Option 1
Option 2
https://github.com/willy-r/morse-translator.git
auf Ihre lokale Maschinehttps://github.com/willy-r/morse-translator/compare
.Greifen Sie an einem der folgenden Orte an mich!
@lliw_r