1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Ctrl + 鼠标左键:跳转到对应的`定义位置`

Ctrl + 鼠标左键:跳转到对应的`定义位置`

时间:2023-03-17 01:50:59

相关推荐

Ctrl + 鼠标左键:跳转到对应的`定义位置`

在代码中,想要查看一个函数或变量的定义位置时,可以将鼠标放在想要查看的对象上 ,按ctrl+鼠标左键,即可跳转到定义位置

例如:想要查看extract_all_wav_feature()的定义位置,直接将光标放在该位置:

ctrl+鼠标左键即可跳转到定义位置:

def extract_all_wav_feature(wavdir, distfile, opensmiledir):'''Extract 6373-dimension static features into one dist file.Args:wavdir: Path to audios in WAV format.distfile: Path of distfile.opensmiledir: Path to opensimle project root.Returns:Distfile containing 6373-dimension static features of all the WAVs.'''SMILExtract = os.path.join(opensmiledir,"SMILExtract")config_file = os.path.join(opensmiledir,"config", "IS13_ComParE.conf")if os.path.exists(distfile):os.remove(distfile)wav = [f for f in os.listdir(wavdir) if f[-4:] == ".wav"]for w in wav:wavpath = os.path.join(wavdir,w)subprocess.check_call([SMILExtract, "-C", config_file, "-I", wavpath, "-O", distfile, "-instname", w])

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。