2014-12-01 3 views

답변

3
import re 
x="00ffabcafe4c" 
print re.sub(r"(\w{2}(?!$))",r"\1:",x) 

출력 : 00:ff:ab:ca:fe:4c