thisvalues = [d[ 'value' ] for d in thelist if 'value' in d]. print (thisvalues). Output. ['apple', 'banana', 'cars']. How to create and print list in ...
確定! 回上一頁