python创建元组_python:从列表创建元组列表
I have two lists:x = ['1', '2', '3']y = ['a', 'b', 'c']and I need to create a list of tuples from these lists, as follows:z = [('1','a'), ('2','b'), ('3','c')]I tried doing it like this:z = [ (a,b) fo...