def save_user_info(self): mysql_command = MySQLCommand() mysql_command.connectdb() while True: result = self.user_queue.get() # print('爬去的用户结果: ', result) mysql_command.insert_user(result)
def save_user_info(self): mysql_command = MySQLCommand() mysql_command.connectdb() while True: result = self.user_result_queue.get() mysql_command.insert_user(result)