UI自动化web端框架tool.py代码

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())
posted @ 2018-07-05 14:36  laosun0204  阅读(158)  评论(0编辑  收藏  举报