[英]How to avoid printing commented out code in for loop
I run this code in the python idle shell and got the same output.我在 python 空闲 shell 中运行此代码并得到相同的 output。 But when i run it in a file it stops printing this.但是当我在文件中运行它时,它会停止打印。 So try running it in a file , not in command prompt or the idle shell所以尝试在文件中运行它,而不是在命令提示符或空闲 shell
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.