001、strings=["a","as","bat","car","dove","python"] 过滤掉长度小于等于2的字符串,并将剩下的字符串转换成大写字母形式。
方法一:
方法二:
002、 strings=["a","as","bat","car","dove","python"] 创建一个指向列表位置的映射关系的字典。
方法一:
方法二:
方法三:
方法四:
003、some_tuples=[(1,2,3),(4,5,6),(7,8,9)] 将这个整数元组构成的列表成为一个简单的整数列表。
方法二:
004、all_data=[["Tom","Billy","Jefferson","Andrew","Wesley","Steven","Joe"], ["Susie","Casey","Jill","Ana","Eva","Jennifer","Stephanie"]]我们要找出带有2个或以上的字母e的名字,并将它们放入一个新列表.