Decorate \ delegate a File object to add functionality

后端 未结 5 871
忘掉有多难
忘掉有多难 2020-12-03 01:57

I\'ve been writing a small Python script that executes some shell commands using the subprocess module and a helper function:

import subprocess          


        
5条回答
  •  醉梦人生
    2020-12-03 02:31

    I would suggest option 3, with the logging standard library package. In this case I'd say the other 2 were overkill.

提交回复
热议问题