Discuss / Python / 作业二完善

作业二完善

Topic source

Pmz丶

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

import os

def findPath(s):
for n in os.listdir():
if n.find(s) >= 0 :
if os.path.isfile(n): print (os.path.realpath(n))


  • 1

Reply