python下载xml,而不是在命令行中打印任何东西

时间:2015-04-17 13:33:52

标签: python xml wget

我目前在我的python脚本中使用它:

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

我还能用什么来打印这张照片?

1 个答案:

答案 0 :(得分:0)

你可以将--quiet标志添加到wget,看看是否全部为你摆脱