Я новичок в Python, и я пытаюсь открыть локальный с режимом записи
но я получил следующие ошибки
with io.open('http:\\localhost:3000\\assets\\i18n\\locale-ru.json', 'w') as outfile:
IOError: [Errno 22] Invalid argument: 'http:\\localhost:3000\\assets\\i18n\\locale-ru.json'
Вот кусок кода:
with io.open('http://localhost:3000//assets//i18n//locale-ru.json', 'w') as outfile:
str_ = json.dumps(data_ru,
indent=4, sort_keys=True,
separators=(',', ': '), ensure_ascii=False)
outfile.write(to_unicode(str_))