参考了https://blog.csdn.net/wyb199026/article/details/78730097,写了个这样的listener
# listen.py
class RobotListener:
ROBOT_LISTENER_API_VERSION = 2
def myprint(self, data):
if type(data)==unicode:
print data.encode("utf-8")
else:
print data
<