python re 求助
查看原帖
python re 求助
1393199
Folden_xiaoming楼主2025/1/28 20:41
from decimal import Decimal
n=int(input())
def f(x):
    r=Decimal(1)
    for i in range(1,n+1):
        r=r*Decimal(i)
    return r
re=f(n)
while re%10==0:
    re//=10
print(re%10)

救救我吧

2025/1/28 20:41
加载中...