2015-04-17 100 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并查看是否可以将其全部清除