def fac(a): if a == 1: return 1 else: return a + fac(a-1) print(fac(6))
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。