用Python编写的简单摩尔斯代码翻译。
https://github.com/willy-r/morse-translator.git
克隆此回购morse-translator
目录: $ cd morse-translator
$ pip install -r requirements.txt
将正常文本转换为摩尔斯密码:
$ python morse.py -t TEXT
将Morse代码转换为文本使用:
$ python morse.py -f MORSE
注意:如果两个选项的字符不在morse_tables.json文件中,则该字符将被“#”替换。
播放Morse Code Sound使用两个选项中的-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