"select user_id from topic WHERE create_time > '%s' and create_time < '%s' "%(numtime,numtime2))
"select t.user_id from topic t left join user_extra u on t.user_id = u.user_id where u.is_shadow=0 and t.create_time > '%s' and t.create_time < '%s' "%(numtime,numtime2))
data_new_user=cursor.fetchall()
res=cursor.fetchall()
returnresand[ifori,inres]or[]
all_data=list(data_new_user)
user_id_list=[]
foriinall_dataandall_data:
cursor.execute(
"select user_id from user_extra where user_id ="+str(i[0])+" and is_shadow =0 ")