阅读背景:

在Python中检查列表中的相同项目

来源:互联网 

I was making a Set exercise generator for my math teacher, however I stumbled onto a problem. I was using randint to generate all the numbers inside the "sets" (which are lists), and many time I ended up with the same integers repeated 2 to 4 times, and that is impossible in a conventional algebraic set. Is there a way for me to take of the repeated items without affecting the entire list? I was making a Set exercise generator for my ma




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: