GetGroup.py 320 B

12345678
  1. import requests
  2. def get_group(id):
  3. response = requests.post('http://127.0.0.1:5700/get_group_member_list?group_id='+str(id)).json()
  4. for i in response['data']:
  5. if(i['card']!=''):
  6. print(i['card']+':'+str(i['user_id']))
  7. else:
  8. print(i['nickname']+':'+str(i['user_id']))