1108.IP地址无效化(python)

class Solution(object):
    def defangIPaddr(self, address):
        """
        :type address: str
        :rtype: str
        """
        return address.replace('.','[.]')

发布了64 篇原创文章 · 获赞 4 · 访问量 4322

猜你喜欢

转载自blog.csdn.net/yuppie__1029/article/details/105729306