clwn.net
当前位置:首页 >> python中rounD(23/5,0)和rounD(23/5.0)有什么区别 >>

python中rounD(23/5,0)和rounD(23/5.0)有什么区别

那说明你用的是python2, python3会是5.0 和 5 round函数: Docstring:round(number[, ndigits]) -> number Round a number to a given precision in decimal digits (default 0 digits). This returns an int when called with one argument, ot...

网站首页 | 网站地图
All rights reserved Powered by www.clwn.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com