1108. Defanging an IP Address

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 1108

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