Python中的os.execv:没有足够的空间

时间:2018-10-23 14:07:28

标签: python python-3.5

我有一个在Windows上运行的脚本python 3.54

if not exist "%~1" (echo ...

当我第114次跑步时会失败 一些相关信息

def call_self(count):
    print("TEST%s = %s" % (count))
    sys.argv[1] = "%s" % (int(sys.argv[1]) +1)
    os.execv(sys.executable, ['python'] + sys.argv )

if __name__=="__main__":
     call_self(sys.argv[1])

>>python test.py 1

0 个答案:

没有答案