Python the same code in Linux and Windows operation result, strives for the bosses run results show the first is the Windows, a success, the second is the Linux operating results, a 503 error, I changed a server, the result of the heavyweight directions, even the website have problems
CodePudding user response:
(pythonenv) star Downloads] [Andy @ $python request. Py
(pythonenv) star Downloads] [Andy @ $cat request. Py
The import requests
Url="http://ip138.com/ips138.asp"
116.230.228.152 kw2={" IP ":" "}
R=requests. Request (' GET 'url, params=kw2)
Print (r)
I run in Linux fine
CodePudding user response:
reference 1st floor sun0128 response: (pythonenv) star Downloads] [Andy @ $python request. Py (pythonenv) star Downloads] [Andy @ $cat request. Py The import requests Url="http://ip138.com/ips138.asp" 116.230.228.152 kw2={" IP ":" "} R=requests. Request (' GET 'url, params=kw2) Print (r) I run in Linux fine can I ask how much is your python version? CodePudding user response:
refer to the second floor two handsome A reply: Quote: refer to 1st floor sun0128 response: (pythonenv) star Downloads] [Andy @ $python request. Py (pythonenv) star Downloads] [Andy @ $cat request. Py The import requests Url="http://ip138.com/ips138.asp" 116.230.228.152 kw2={" IP ":" "} R=requests. Request (' GET 'url, params=kw2) Print (r) I run in Linux fine can I ask how much is your python version? Here is my python and requests version, I think it's ok, and python version (pythonenv) star Downloads] [Andy @ $python - version Python 3.7.4 (pythonenv) star Downloads] [Andy @ $PIP list | grep -i requests Requests 2.21.0 CodePudding user response:
reference sun0128 reply: 3/f Quote: refer to the second floor two handsome A reply: Quote: refer to 1st floor sun0128 response: (pythonenv) star Downloads] [Andy @ $python request. Py (pythonenv) star Downloads] [Andy @ $cat request. Py The import requests Url="http://ip138.com/ips138.asp" 116.230.228.152 kw2={" IP ":" "} R=requests. Request (' GET 'url, params=kw2) Print (r) I run in Linux fine can I ask how much is your python version? Here is my python and requests version, I think it's ok, and python version (pythonenv) star Downloads] [Andy @ $python - version Python 3.7.4 (pythonenv) star Downloads] [Andy @ $PIP list | grep -i requests Requests 2.21.0 My Windows python version is 3.6.7 Linux version is 3.6.5 I changed a server that is no good so I want to have a try first version if there is any impact CodePudding user response:
references 2, 4/f, handsome A reply: Quote: refer to the third floor sun0128 response: Quote: refer to the second floor two handsome A reply: Quote: refer to 1st floor sun0128 response: (pythonenv) star Downloads] [Andy @ $python request. Py (pythonenv) star Downloads] [Andy @ $cat request. Py The import requests Url="http://ip138.com/ips138.asp" 116.230.228.152 kw2={" IP ":" "} R=requests. Request (' GET 'url, params=kw2) Print (r) I run in Linux fine can I ask how much is your python version? Here is my python and requests version, I think it's ok, and python version (pythonenv) star Downloads] [Andy @ $python - version Python 3.7.4 (pythonenv) star Downloads] [Andy @ $PIP list | grep -i requests Requests 2.21.0 My Windows python version is 3.6.7 Linux version is 3.6.5 I changed a server that is no good so I want to have a try first is it version Requests version? CodePudding user response:
reference 5 floor sun0128 reply: Quote: refer to 4th floor 2 handsome A reply: Quote: refer to the third floor sun0128 response: Quote: refer to the second floor two handsome A reply: Quote: refer to 1st floor sun0128 response: (pythonenv) star Downloads] [Andy @ $python request. Py (pythonenv) star Downloads] [Andy @ $cat request. Py The import requests Url="http://ip138.com/ips138.asp" 116.230.228.152 kw2={" IP ":" "} R=requests. Request (' GET 'url, params=kw2) Print (r) nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull