Я загрузил файл, используя
Код: Выделить всё
with open(file_path, "r") as f:
data = f.readlines()
Код: Выделить всё
for index, entity in enumerate(data):
d = ast.literal_eval(entity)
print(index)
# Building a dictionary here.... But fails at index 1, that has the sentence,
"it": "Da dove deriva la frase \\"great scott\\"",
Подробнее здесь: https://stackoverflow.com/questions/790 ... escape-cha
Мобильная версия