PAT_乙级_1021python中 / 与 //
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
下载地址
用户评论