EpythonProject1venvScriptspythonexe EpythonProject1mainpy File EpythonProject1mainpy line 2 for nihao in numberList ^SyntaxError expected 进程已结束退出代码为 1
The error message indicates a syntax error in your code. Specifically, it is expecting a colon after the numberList in the for loop statement.
To fix this issue, you should add a colon at the end of the line:
for nihao in numberList:
# Rest of the code goes here
With the colon added, the syntax error should be resolved.
原文地址: https://www.cveoy.top/t/topic/iqUi 著作权归作者所有。请勿转载和采集!