64,651
社区成员
发帖
与我相关
我的任务
分享
543211213211Press any key to continue
http://topic.csdn.net/u/20100204/01/a4ebae76-2e24-4ddf-8466-7cff3fd27f9a.html
a(3)
{
print(3);
a(2)
{
print(2)
a(1)
{
print(1)
a(0) 进去返回
a(-1) 进去返回
}
a(0) 进去返回
}
a(1) // 要等a(2)递归调用完了才顺序执行它
{
print(1)
a(0) 进去返回
a(-1) 进去返回
}
}