2015-04-17 95 views
-1

我目前在我的Python腳本中使用此不打印任何東西:蟒蛇下載XML,並在命令行

os.system("sudo wget -P /etc/lirc/http://localhost:80/example.xml")` 

當我運行該腳本打印此命令行:

--2015-04-17 13:26:27-- http://localhost:80/example.xml 
Connecting to http://localhost:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: unspecified [text/xml] 
Saving to: /etc/lirc/example' 

[ <=>         ] 612   --.-K/s in 0s 

我還有什麼可以用來不打印這張照片?

回答

0

您可以將--quiet標誌添加到wget並查看是否可以將其全部清除