class Solution:
def defangIPaddr(self, address: str) -> str:
add = address.replace('.','[.]')
return add
class Solution:
def defangIPaddr(self, address: str) -> str:
add = address.replace('.','[.]')
return add
转载于:https://www.cnblogs.com/asenyang/p/11145979.html