นักแปลรหัสมอร์สง่าย ๆ ที่เขียนใน Python
https://github.com/willy-r/morse-translator.git
morse-translator
: $ 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