📜  列表索引超出范围 - Python 代码示例

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

代码示例1
programming_languages = ["Java", "Python", "C++"]
count = 0 

while count <= len(programming_languages):
    print(programming_languages[count])
    count += 1