반응형
dict = {'di-dah': 'A',
'dah-di-di-dit': 'B',
'dah-di-dah-dit': 'C',
'dah-di-dit': 'D',
'dit': 'E',
'di-di-dah-dit': 'F',
'dah-dah-dit': 'G',
'di-di-di-dit': 'H',
'di-dit': 'I',
'di-dah-dah-dah': 'J',
'dah-di-dah': 'K',
'di-dah-di-dit': 'L',
'dah-dah': 'M',
'dah-dit': 'N',
'dah-dah-dah': 'O',
'di-dah-dah-dit': 'P',
'dah-dah-di-dah': 'Q',
'di-dah-dit': 'R',
'di-di-dit': 'S',
'dah': 'T',
'di-di-dah': 'U',
'di-di-di-dah': 'V',
'di-dah-dah': 'W',
'dah-di-di-dah': 'X',
'dah-di-dah-dah': 'Y',
'dah-dah-di-dit': 'Z',
'dah-dah-dah-dah-dah': '0',
'di-dah-dah-dah-dah': '1',
'di-di-dah-dah-dah': '2',
'di-di-di-dah-dah': '3',
'di-di-di-di-dah': '4',
'di-di-di-di-dit': '5',
'dah-di-di-di-dit': '6',
'dah-dah-di-di-dit': '7',
'dah-dah-dah-di-dit': '8',
'dah-dah-dah-dah-dit': '9'}
Reference site : https://morsecode.scphillips.com/morse.html
반응형
'<개인공부> - IT > [Python]' 카테고리의 다른 글
List comprehension (0) | 2020.03.30 |
---|---|
Python regular expression match and search methods (0) | 2020.03.24 |
What is the point of float("-inf"), float("inf") (0) | 2019.01.22 |
Regular expression practice (0) | 2019.01.17 |
Rotate Image (Rotate array values 90 degrees, clockwise) (0) | 2019.01.16 |