【发布时间】:2018-07-21 11:35:38
【问题描述】:
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='')
当我调用这个函数时,最后一个print函数中的内容(最后一行代码)没有打印出来。有人知道为什么吗?谢谢!
【问题讨论】:
标签: python python-3.x function printing