Python Integer Division Result
单选题 简单
题目
什么是 值的 `7 // 2` in Python?
提示
// 运算符执行 floor (integer) division.
解释
// 是 floor division — 它划分 and rounds 下到 nearest integer. 7 / 2 = 3.5, 所以 7 // 2 = 3. Use / 如果你 想要 float result 3.5.
相关资源
相关课程
- Python 变量
Arithmetic 运算符 in Python.
相关速查表
- Python Cheatsheet
运算符引用.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。