这答案不对吗
def move(n, a, b, c):
if n==1:
print ('A-->C')
move(n-1, a, b, c)
elif n>1:
print ("A-->B")
move(n-1, a, b, c)
print ("B-->C")
move(4, 'A', 'B', 'C')
def move(n, a, b, c):
if n==1:
print ('A-->C')
move(n-1, a, b, c)
elif n>1:
print ("A-->B")
move(n-1, a, b, c)
print ("B-->C")
move(4, 'A', 'B', 'C')
2019-09-24
举报