python 获取一个文件夹内(包括子文件夹)所有文件的名字和路径
import os
dir = "e:\\"
for root, dirs, files in os.walk(dir):
for file in files:
print os.path.join(root,file)
或:
import os
path = r'e:\case'
fns = [os.path.join(root,fn) for root, dirs, files in os.walk(path
Intensity noise including Mode Partition Noise (MPN) and Mode Hopping Noise (MHN), and Phase/Frequency Noise Spectrum (FNS) are calculated for a two-mode semiconductor laser. RIN is derived considering of MPN and MHN effect.