Title , Rating
[('"$weepstake$" (1979) {(#1.2)}', '10.0'),
('"\'Til Death Do Us Part" (2006) {Pilot (#1.0)}', '3.7'),
('"\'Conversations with My Wife\'" (2010)', '4.2')]
movies = [('"$weepstake$" (1979) {(#1.2)}', '10.0'), ('"\'Til Death Do Us Part" (2006) {Pilot (#1.0)}', '3.7'),
('"\'Conversations with My Wife\'" (2010)', '4.2')]
print '\n'.join([movie[1] for movie in movies])
对于列表中的每一项,您需要第二项,即索引
1
:这将为您提供所需的输出。在
关于:
相关问题 更多 >
编程相关推荐