Code Signal: Intro=47/60
by 습관중독def isMAC48Address(inputString):
MAC = inputString.split('-')
HEX = ['1', '2', '3', '4','5','6','7','8','9','0','A','B','C','D','E','F']
if len(MAC) != 6:
return False
for k in range(6):
if len(MAC[k]) != 2:
return False
for i in range(6):
for j in range(2):
if MAC[i][j] in HEX:
continue
else:
return False
return True
'코드 파이트(Code Signal)' 카테고리의 다른 글
Code Signal: Intro=49/60 (0) | 2020.02.23 |
---|---|
Code Signal: Intro=48/60 (0) | 2020.02.23 |
Code Signal: Intro=46/60 (0) | 2020.02.23 |
Code Signal: Intro=45/60 (0) | 2020.02.23 |
Code Signal: Intro=44/60 (0) | 2020.02.23 |
블로그의 정보
습관을 애정한다
습관중독