Python 50分求助
查看原帖
Python 50分求助
701049
Wwwwwww57楼主2023/1/28 16:39
from math import modf

a,b,n=map(int,input().split())
m=modf(a/b)[0]   #取分数的小数部分,math.modf(4.25)=(0.25,4.0)
m=str(m)
print(m[n+1])
2023/1/28 16:39
加载中...