本⽂实例讲述了Python判断⼀个list中是否包含另⼀个list全部元素的⽅法。分享给⼤家供⼤家参考,具体如下:你可以⽤for in循环+in来判断 #!/usr/bin/env python # coding: utf-8 a = [1, 2, 3, 4, 5]b = [3, 4, 5]d = [Fals e for c in b i f c not in a]if d:print ...