关于作者

Discuss / Python / 作业2

作业2

问题来源

c姗妮c

#1 Created at ...

#!/usr/bin/env python3

-- coding: utf-8 --

import os

def find(pwd, str): for x in os.listdir(pwd): if os.path.isfile(x): if x.find(str)>-1: print(os.path.join(pwd,x)) elif os.path.isdir(x): find(os.path.join(pwd,x), str)

find (('.'), 'err')


  • 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.