九州体育网 - 十年信誉网站

关于作者

Discuss / Python / 第二题,我理解是在当前目录下,所以跟前面例子应该差未几

第二题,我理解是在当前目录下,所以跟前面例子应该差未几

Topic source

天台人王耀辉

#1 Created at ...

import os [(x, os.path.abspath(x)) for x in os.listdir('.') if 'mydict' in os.path.splitext(x)[0]]


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.