單項選擇題

在Python中,如何將一個浮點數(shù)四舍五入到指定的小數(shù)位數(shù)?()

A.round(float,decimals)
B.float.round(decimals)
C.roundUp(float,decimals)
D.float.toFixed(decimals)

微信掃碼免費搜題