python for循环作用域的坑

版权声明:本文为博主原创文章,转载请加入原文链接,谢谢。。 https://blog.csdn.net/shawncheer/article/details/82464179

直接上图:

这里for循环里面的x作用域衍生到循环外面了。

猜你喜欢

转载自blog.csdn.net/shawncheer/article/details/82464179