我想编写一个批处理文件,在 .wav 文件的文件夹上运行 cmd 行“lame.exe [options] [infile] [outfile]”。
就像是
FOR %%f IN (dir *.wav) DO (lame.exe -V0 -h %%f.wav %%f.mp3)
当然这是错误的但是...我如何为此生成正确的 [infile] [outfile] 参数?
如何遍历名称将动态生成的列表?
boneList_head =['def_neck', 'def_armbase']#hard coded list
itemType='head'# result of a user button press
...
def selectBones():
global itemType
bones =('boneList_'+itemType)# evaluates as a string , not name of a list
for bone in bones:
cmds.select(bone, tgl=True)
Run Code Online (Sandbox Code Playgroud)
问题是骨头被评估为一个字符串,当我需要它作为列表的名称进行评估时.