Discuss / Python / 这个很到位

这个很到位

Topic source

zmy235

#1 Created at ... [Delete] [Delete and Lock User]
 if n==1 :
  print('{}-->{}'.format(a,c))
  return
 move(n-1,a,c,b)
 move(1,a,b,c)
 move(n-1,b,a,c)

move(6,'X','Y','Z')

  • 1

Reply