DefangIPaddr

Published at 2021-07-10

class Solution:
    def defangIPaddr(self, address: str) -> str:
        return address.replace('.',"[.]")