1. 首页
  2. 数据库
  3. 其它
  4. PAT_乙级_1021python中 / 与 //

PAT_乙级_1021python中 / 与 //

上传者: 2020-12-31 07:21:02上传 PDF文件 46.37KB 热度 8次
Python中的除法 第一种是:/ ,普通的除法。 第二种是:// ,官方称为地板除(floor division),得到的结果永远是整数。 对于除法,官方的解释是这样的: Division (/) always returns a float. To do floor division and get an integer result (discarding any fractional result) you can use the // operator; to calculate the remainder you can use %. 我们大概了解了除法( ̄) ̄):up-right
下载地址
用户评论