結果 : how to generate matrix in python