用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