Python列出文件和目录

import os
[d for d in os,listdir('.')]

在这里插入图片描述

posted @ 2019-05-11 21:32  Philtell  阅读(301)  评论(0编辑  收藏  举报