python 如何将手机号中间四位替换成****时间:2021-02-20 18:09:19 phone = ‘15189827893‘ list = phone[3:7] new_phone = phone.replace(list, ‘****‘) print(new_phone)