📜  python代码示例中的一个错误

📅  最后修改于: 2022-03-11 14:45:18.422000             🧑  作者: Mango

代码示例1
# This is one of the most common errors when using "for" loops
# Programmers index starts from 0
# But the common use is to start lists of numbers with 1
# So programmers must be careful when indexing due to this mismatch and it is the main reson to off-by-one error