开发者社区> 问答> 正文

python中operator. __truediv__(a, b)方法的作用是什么?

python中operator. truediv(a, b)方法的作用是什么?

展开
收起
游客k7rjnht6hbtk6 2021-11-15 21:06:01 469 0
1 条回答
写回答
取消 提交回答
  • 返回a / b,并且类似于2/3是0.66而不是0。它也被称为真除法。

    2021-11-16 16:28:34
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载