原文:python中的commands模塊,執行出錯:'{' 不是內部或外部命令,也不是可運行的程序 或批處理文件。

最近發現了python的commands模塊,查看了下源碼,使用的popen封裝的,形成三個函數getstatus , getoutput , getstatusoutput 源碼如下: def getstatus file : Return output of ls ld lt file gt in a string. import warnings warnings.warn commands ...

2015-01-14 10:50 1 5170 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM