Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def save_sql(self):
     mysql_command = MySQLCommand()
     mysql_command.connectdb()
     while True:
         ids = self.id_queue.get()
         mysql_command.insert_list(ids)