Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

ShyngyS's blog

By ShyngyS, history, 9 years ago, In Russian

Учусь языку питон, и сталкнулся с проблемой компиляцией.На С++ обычно я пишу на FAR manager, и хотел питон тоже на FAR'e писать. Если я пишу input, output выводит нормально, но хотел именно чтобы ответ выводилось на черный экран в FAR'e ! Если знаете, можете помочь с этой проблемой : Как компилировать питон файл на FAR ? (Спасибо вам большое за внимание !)

  • Vote: I like it
  • -1
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it +2 Vote: I do not like it

You can create file associations in Far Manager. Go to Menu (F9) -> Commands (C) -> File associations (A), then make a new file association (Insert):

Now, when you press Enter on a file with mask *.py, it will be run in the same console window as Far Manager.

Furthermore, when you press Ctrl+PgDn on such file (for example, d.py), it will execute d.py <d.in >d.out, reading d.in instead of standard input (keyboard) and writing to d.out instead of standard output (screen). Files are useful if you don't want to enter the same input again and again when testing your program.