if I run "urllib.request.urlopen() " commond in the tmux environment, it will cause an error of "urllib.request.urlopen() error [Errno 111]". But if do not run it in the tmux environment , it is OK. So, any one would soolve it? I will appreciate it.
the python code as below, it is so easy and simulate the process of logining the web.
if I run "urllib.request.urlopen() " commond in the tmux environment, it will cause an error of "urllib.request.urlopen() error [Errno 111]". But if do not run it in the tmux environment , it is OK. So, any one would soolve it? I will appreciate it. the python code as below, it is so easy and simulate the process of logining the web.
from urllib import request
def test_web(): url = 'https://www.baidu.com/' headers ={
the code line below can also be deledted
test_web()