Ваш вопрос немного неясен. Если вы генерируете hostDict в цикле: with open('data.txt', 'a') as outfile: for hostDict in ....: json.dump(hostDict, outfile) ...
確定! 回上一頁