出现错误:NameError:name 'threading' is not defined
Topic sourceTraceback (most recent call last): File "get_s.py", line 26, in <module> t = threading.Thread(target=tcplink, args=(sock, addr)) NameError: name 'tcplink' is not defined
运行客户端代码时,服务器又报这个错
- 1
Adam常
服务器端是这个代码
客户端是这个代码:
但是运行出现了错误:NameError:name 'threading' is not defined 是什么原因呢?