摘要:
address = '浙江省杭州市\r\n滨江区xx小区7#门'need_replace = {'\n': '', '\r': '', '#': '号'}table = str.maketrans(need_replace)clean_address = address.translate(tabl 阅读全文
摘要:
import copya = [1, 2, 3, 4, ['a', 'b']] # 原始对象b = a # 赋值,传对象的引用c = copy.copy(a) # 对象拷贝,浅拷贝d = copy.deepcopy(a) # 对象拷贝,深拷贝a.append(5) # 修改对象aa[4].appen 阅读全文