标签: python for-loop factorial
这是我使用int(input())作为测试用例的阶乘代码:
int(input())
for i in range(int(input())): n = int(input()) for j in range(1,n): n = n*j print(n)