Output a python script to text file

后端 未结 4 546
陌清茗
陌清茗 2021-01-23 01:49

I\'m using a script that someone else wrote in python. It\'s executed from the command line with 3 arguments.

example: \"python script.py 1111 2222 3333\"

It do

4条回答
  •  生来不讨喜
    2021-01-23 02:28

    yes, if you are in a typical unixy shell, that will work exactly as you hope.

    If you want to modify the script to write to a file instead of to the stdout, you can read about how to use file()

提交回复
热议问题