請問這里的return代表什么呢
def move(n, a, b, c):
? ? #when there is only 1 block on A, move it to C directly
? ? if n == 1:
? ? ? ? print a, '-->', c
? ? ? ? return? #請問這里為什么要加這個return呢
? ? move(n-1, a, c, b) # 這個包括以下的碼是代表else的部分嗎
? ? print a, '-->', c
? ? move(n-1, b, a, c)
move(4, 'A', 'B', 'C')
2020-04-24
代表整個循環(huán)結束