2 questions
I want to use Glob() to recursively find the file.The code I use is Glob(os.path.join('src','*.c'))This code is currently in the src directory only.Locate the c file.Also in the subdirectory of src Ho...
import globimport shutilimport osimport sysfilename = glob.glob('**/*.jpg', recursive=True)filename = [os.path.basename(name) for name in filename]for name in filename: if not os.path.exists('jpg_file...
© 2024 OneMinuteCode. All rights reserved.