递归题

def test3(int1):
if int1 > 2:
int1 = int1 - 2
int1 = int1 / 2
test3(int1)
return int1


if __name__ == '__main__':
print(test3(20))

答案:9.0
posted @ 2022-05-07 11:54  wyz_1  阅读(12)  评论(0编辑  收藏  举报