2006年09月17日 星期日 15:24
jh®Û.nèqë,L!W¢×K-²Ë¦ºzËjYb¥Ê'~(PßWÆÛ!zY
2006年09月17日 星期日 15:26
xhsoldier wrote:
>
>
> import subprocess
> i = 0
> while i < 10:
> sts = subprocess.call('ipconfig -all > D:\\file.txt', shell = True)
>
r'ipconfig -all >> d:\file.txt'
> i += 1
>
> 我的愿意是每次在文件的末尾添加打印的结果, 这样同样的结果就会有10次,可是执行的结果却只有最后一次的打印结果。
> 怎么解决这个问题?
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年09月18日 星期一 00:17
:׿ôël¢Wbz¼a²]êõëw( èµè¦¦í²æé®²È
Zeuux © 2025
京ICP备05028076号