2024-04-25 12:12:21 发布
网友
我有一个命令如下
Result = os.open(“curl -u username:password https://hostname/stafftools/reports/all_users.csv -k”).read()
它什么也没回来。你知道吗
有人能帮我吗?你知道吗
您应该使用subprocess模块:
subprocess
import subprocess result = subprocess.call(["curl", "-u", "username:password", "https://hostname/stafftools/reports/all_users.csv", "-k"])
查找更多信息here。你知道吗
您应该使用
subprocess
模块:查找更多信息here。你知道吗
相关问题 更多 >
编程相关推荐