How to use the dir/s command in Python?

后端 未结 5 2091
[愿得一人]
[愿得一人] 2021-01-13 07:13

Background

I use the command dir/s in batch files all the time. But, I am unable to call this using python. NOTE: I am

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 07:58

    How about

    subprocess.call("dir/s", shell=True)
    

    Not verified.

提交回复
热议问题