第三题缺少必要参考,第四题代码如下
lists=[random.randint(0,20) for i in range(20)] lists = list(set(lists)) print(lists)
有帮助请采纳,有问题继续交流,你的采纳是对我回答的最大的肯定和动力