Python90分求助
查看原帖
Python90分求助
862483
ajdgjhagdjhsa楼主2023/7/9 20:02

a,b,n=map(int,input().split()) c=float(a)/b c_str=list(str(c)) index=c_str.index('.') if index+n>len(c_str): print('0') else: print(c_str[index+n])

2023/7/9 20:02
加载中...