您应该研究使用“请求”库:http :
//docs.python-requests.org/en/latest/
我相信这可以通过使用请求库来实现:
data={'data[]':'downloadable_file1.tar'}req = requests.post('webpage/data.php', data)with open('file.data', 'wb') as file: file.write(req.content)
您应该研究使用“请求”库:http :
//docs.python-requests.org/en/latest/
我相信这可以通过使用请求库来实现:
data={'data[]':'downloadable_file1.tar'}req = requests.post('webpage/data.php', data)with open('file.data', 'wb') as file: file.write(req.content)