import socket
import thread
s = socket.socket(
socket.AF_INET, socket.SOCK_STREAM)
s.connect(("server", 6661))
def recv():
while 1:
print(s.recv(1024))
def send():
while 1:
msg = raw_input("> ")
s.send(msg)
thread.start_new_thread(recv())
thread.start_new_thread(send())
为什么代码在线程 recv() 之后没有运行 - 我看不到它应该挂在哪里