#用for產生串列list(99乘法表,但每一個元素是tuple(i,j)),用一行產生 a = [(i,j) for i in range(1,10) for j in range(1,10)] print(a)