无法连接。
C:\Users\ASUS\venv\Scripts\python.exe "E:\JetBrains\PyCharm 2019.1.1\helpers\pydev\pydevconsole.py" --mode=client --port=52410
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\\Users\\ASUS', 'C:/Users/ASUS'])
PyDev console: starting.
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
runfile('C:/Users/ASUS/Desktop/text/源代码/HTTP服务器开发/client.py', wdir='C:/Users/ASUS/Desktop/text/源代码/HTTP服务器开发')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "E:\JetBrains\PyCharm 2019.1.1\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "E:\JetBrains\PyCharm 2019.1.1\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/ASUS/Desktop/text/源代码/HTTP服务器开发/client.py", line 20, in <module>
client()
File "C:/Users/ASUS/Desktop/text/源代码/HTTP服务器开发/client.py", line 12, in client
s.connect((HOST,PORT))
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。