#40039: python 直接除


enhanwen8@gmail.com (會寫程式的羊)


可以使用import decimal

計算到所需精度+10位之後

使用.format到所需位數精度+10位

然後使用[:-10]去除多餘位數就好啦