address = '浙江省杭州市\r\n滨江区xx小区7#门'need_replace = {'\n': '', '\r': '', '#': '号'}table = str.maketrans(need_replace)clean_address = address.translate(table)
translate