n__':xpillars = {'A', 'B', 'C'} # 汉诺塔的三个柱子def xhanoi(xtop, xbottom, xsrc='A', xdest='C'):if '__main__' == __name__:以Erlang语言求解：-module(hanoi).-export([hanoi/1]).hanoi(N) when N>0 ->do_hanoi({0, _, _}) ->do_hanoi({1, From, To}) ->do_hanoi(