Discuss / Python / 交作业了,有疑问!!!!求解答!!!

交作业了,有疑问!!!!求解答!!!

Topic source

Dominias

#1 Created at ... [Delete] [Delete and Lock User]

def move(n, a, b, c): i=0 i=i+1 if n==1: print('Loop %s:%s ---> %s' %(i,a,c)) return else: move(n-1, a, c, b) print('Loop %s:%s ---> %s' %(i,a,c)) move(n-1, b, a, c) return

怎么让Loop 1-n 正常显示哦?


  • 1

Reply