def handler_users_answ(coze, res, type, source):
if res:
if res.getType() == 'result':
aa=res.getQueryChildren()
if aa:
print 'workz1'
for x in aa:
m=x.getAttr('jid')
if m:
print m
so this code returns me the values like this:
[email protected]/nickname1
[email protected]/nickname2
and so on, but i want it to print the value after the '/' only. like:
nickname1
nickname2
Thanks in advance.