摘要:
方式一:使用切片 [:] 列表 # 浅拷贝 [:] old_list = [1, 2, [3, 4]] new_list = old_list[:] old_list.append(5) old_list[2][0] += 97 print("Old list:", old_list, "old l 阅读全文
posted @ 2023-10-23 17:00
Python探索牛
阅读(351)
评论(0)
推荐(0)
浙公网安备 33010602011771号