[LeetCode] 1108. Defanging an IP Address
Python
class Solution:
def defangIPaddr(self, address: str) -> str:
temp = address.split(".")
return "[.]".join(temp)
class Solution:
def defangIPaddr(self, address: str) -> str:
temp = address.split(".")
return "[.]".join(temp)
댓글남기기