2007年07月12日 星期四 13:44
os.popen("cp a b") Óï¾äa
os.popen("vim b") Óï¾äb
Óï¾äa°ÑaÎļþ¿½±´Ò»·Ýb,½Ó×ÅÓÃvim´ò¿ªÎļþb.
Õâʱºò´ò¿ªµÄʱºò±¨´í,Òâ˼ÊÇ˵"Á÷δִÐÐÍê±Ï".
ÔõÑù²ÅÄÜÖªµÀ¿½±´ÒѾÍê³ÉÁË,²ÅÀ´Ö´ÐÐÓï¾äbÄØ?
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070712/f2aca2cc/attachment.html
2007年07月12日 星期四 13:53
os.popen('sleep 10').read()
在 07-7-12,Joe Simer<simerjoe在gmail.com> 写道:
> os.popen("cp a b") 语句a
> os.popen("vim b") 语句b
>
> 语句a把a文件拷贝一份b,接着用vim打开文件b.
> 这时候打开的时候报错,意思是说"流未执行完毕".
> 怎样才能知道拷贝已经完成了,才来执行语句b呢?
> _______________________________________________
> 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
>
---
沈崴 (努力学习 Python 中 ...)
http://blog.163.com/eishn
Zeuux © 2025
京ICP备05028076号