Python USES a loop to implement the bulk folder example

  • 2020-04-02 13:30:34
  • OfStack

The code is very simple, which USES the python sys module, we refer to use it


import os,sys
base = 'C:/'
i = 1
for j in range(100):
    file_name = base+str(i)
    os.mkdir(file_name)
    i=i+1


Related articles: