导入os.path
import os.path
isF = os.path.isfile(fname)#如何存在返回真 print(isF) #True
isF = os.path.isfile(fname)#如何存在返回真
print(isF) #True