下列程序用于删除列表 nums 中的重复项。
nums = [1, 2, 2, 3, 4, 4] unique = list(set(nums)) print(unique)
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。