Discuss / Python / 中文什么时候要转啊 我这里直接可以了

中文什么时候要转啊 我这里直接可以了

Topic source

肖尚民

#1 Created at ... [Delete] [Delete and Lock User]

-- coding:utf-8 --

author = '肖尚民'

import os def findall(e,p='.'): s = os.listdir(p) for x in s: if os.path.isdir(x): findall(e,x) if os.path.isfile(os.path.join(p,x)) and e in os.path.splitext(x)[0] : print(os.path.join(p,x))

中文也可以?

findall('新建文件夹')

findall('p')


  • 1

Reply