leetcode1108

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

  

原文地址:https://www.cnblogs.com/asenyang/p/11145979.html