python 下载 xml 并且不在命令行中打印任何内容
python to download xml and not print anything in the command line
我目前在我的 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
我还能用什么来避免打印?
您可以将 --quiet
标志添加到 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
我还能用什么来避免打印?
您可以将 --quiet
标志添加到 wget,看看它是否为您解决了所有问题