About 520,000 results
Open links in new tab
  1. How to take input file from terminal for python script?

    Nov 23, 2013 · cat input_file.txt | python script.py > output_file.txt. You can passing a big string that has all the data inside input_file.txt instead of an actual file so in order to implement your …

  2. How to read input() from a text file in Python - Stack Overflow

    Dec 3, 2019 · I know for sure, that there exist bots which are able to test python programs passing various inputs and comparing output with known answers. I guess these bots do not hit the …

  3. Take user input and put it into a file in Python? - Stack Overflow

    Jun 10, 2010 · I must have skipped a page or two by accident during my PDF Tutorials on Python commands and arguments, because I somehow cannot find a way to take user input and …

  4. python - Prompt user for file input - Stack Overflow

    I have code that manipulates data of a file that I currently have hard-coded in the script. I want to be able to prompt the user to chose the input file rather than having to hard-code it.

  5. How can I open and read an input file and print it to an output file …

    Feb 23, 2019 · I want the content inside the input file provided by the user to print into the output file the user provided. In this case, the user would put in this. Enter the input file name: …

  6. Choosing a file in Python with simple Dialog - Stack Overflow

    Sep 12, 2017 · I had a situation where I was developing a Python server application (no GUI component) and hence didn't want to introduce a dependency on any python GUI toolkits, but I …

  7. how to take a file as input stream in Python - Stack Overflow

    Mar 1, 2015 · Well, input() reads from the stdin, so you can pipe the file contents the same way as the first example cat file | python script.py – Augusto Hack Commented Mar 1, 2015 at 19:04

  8. Quick and easy file dialog in Python? - Stack Overflow

    Feb 17, 2012 · Using tkinter (python 2) or Tkinter (python 3) it's indeed possible to display file open dialog (See other answers here). Please notice however that user interface of that dialog …

  9. list - How to read input file in Python? - Stack Overflow

    Dec 15, 2015 · I recently started learning Python and I tried solving some Algorithm based problems. But one issue is that every Algo challenge comes with some Input file. It usually …

  10. python - How to properly set the path to input/output file? - Stack ...

    Jul 11, 2017 · However, when I go to project and run the code using python -m some_folder.another_folder.my_work.run, I will have trouble accessing the input file. I tried to …

Refresh