Python列表的特殊用法

#!/usr/bin/python # -*- coding:UTF-8 -*-python   list = ["a","b","c"] list2 = ["a","c",list] print list[0] list3 = [i for i in list if i not in list2] print list print list2 print list3markdown 結果:spa
相關文章
相關標籤/搜索