Question 1:
Finder program
# Dict, list, queue
# directory --- os.walk()
list1 = [c:, d:, e:]
dict1 = {}
def func(drive)
resp = os.walk(drive)
statem1
st
dict1[file] = path
for drive in list1:
#th1 = Thread(target= func(drive))
#th1.start()
func(drive)
# apply join
finding total time of execution #
dict ---> pickle
# Dict, list, queue
# directory --- os.walk()
list1 = [c, d, e]
dict1 = {}
def func(drive):
resp = os.walk(drive)
statem1
st
dict1[file] = path
for drive in list1:
#th1 = Thread(target= func(drive))
#th1.start()
func(drive)
Comments
Leave a comment