模块路径如下图: import sys sys.path.append(r"E:\project\path") print "===>", sys.argv[0] from testone import work print work.run() from testone.work import run print run() from testone.testsix import hello print hello.eat() from testone.te…
需求:读取指定目录下的文件名和目录名 实现如下: package com.test.common.util; import java.io.File; public class ReadFile { /* * 读取指定路径下的文件名和目录名 */ public void getFileList() { File file = new File("D:\\"); File[] fileList = file.listFiles(); for (int i = 0; i < file…