def save_music_list(self): mysql_command = MySQLCommand() mysql_command.connectdb() while True: result = self.list_queue.get() # print('爬去的歌单结果: ', result) mysql_command.insert_list(result)
def save_sql(self): mysql_command = MySQLCommand() mysql_command.connectdb() while True: ids = self.id_queue.get() mysql_command.insert_list(ids)