結果 : python code for constraint satisfaction problem