結果 : simple pattern problems in python