結果 : design with recursive function in python