linux下文件操作
Linux
zb失败,所以总结一下linux下高效的文件管理方式
python
import os
# 当前路径中所有文件名长度不超过7且其中不包含‘.’符号的文件名会被打印。
print(list(filter(lambda x: ('.' not in x) and (len(x)<7), [_ for _ in os.listdir('./')])))
shell
春下两只虫
function getdir(){
echo $1
for file in $1/*
d
原创
2021-04-21 10:57:56 ·
79 阅读 ·
0 评论