考察一个数学公式 class Solution: def trailingZeroes(self, n): """ :type n: int :rtype: int """ res=0 while n: res+=n//5 n=n//5 return res