def recv():
while True:
data = udp_socket.recvfrom(1024)
content, address = data
ip, port = address
print('\r>>>[%s %d] %s' % (ip, port, content.decode()))
print('<<<', end='')
When I call this function, the content in the last print
function (the last line of codes) is not printed out. Anybody knows why? Thank you!