from lib.core.path import PICTURE_PATH
import os
class Tool(object):
def __init__(self):
self.lis = []
# 返回一个list,包着N多个元组
def error_picture(self):
error = os.listdir(PICTURE_PATH)
for e in error:
self.lis.append((e,))
return self.lis
if __name__ == '__main__':
print(Tool().error_picture())