对于初学者来书,经常会碰到下面的错误: no such file or directoryerror 提示找不到文件,这时候就需要将文件放到工作目录下,或者直接修改工作目录到文件所在位置. 右键ERlang启动图标——属性——修改起始位置 现在工作目录已经改变,启动ERlang程序 输入 pwd(). 可以查看当前工作目录…
代码: import os path = r"C:\Users\Administrator\Desktop\***" print('filenum:',len([lists for lists in os.listdir(path) if os.path.isfile(os.path.join(path, lists))]))…