示例#1
0
 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)
示例#2
0
 def save_user_info(self):
     mysql_command = MySQLCommand()
     mysql_command.connectdb()
     while True:
         result = self.user_result_queue.get()
         mysql_command.insert_user(result)