Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道它是从 0 到行和从 1 到行,但哪些是包含哪些是排除?
[ - including, ( - excluding Example: [10, 15) 10, 11, 12, 13, 14 Example: (2, 4) 3
[ 包括在内, ) 是排他性的。所以从 0 到行的所有内容,包括 0,但不包括行。
有时会使用此语法:[0, rows[
[表示闭区间(即包含),表示)开区间(即排除)。所以[0, 10)表示 0 到 10,不包括 10。
[
)
[0, 10)