【发布时间】:2014-06-25 10:15:22
【问题描述】:
如果到达文件末尾,while循环终止
【问题讨论】:
-
你为什么使用
while而不是for?完整的错误回溯在哪里?sPos和ePos和genMaPos是什么;他们有没有改变,如果有,在哪里? -
我做了一些修改@jonrsharpe你现在可以看到它
-
您可以使用
try-except块。 -
@jonrsharpe 在这里。
-
@salman 你能帮我语法吗?
标签: python file while-loop increment termination