小编Mam*_*bo4的帖子

4
推荐指数
1
解决办法
6209
查看次数

.bat 文件夹中所有 wav 上的 lame.exe

我想编写一个批处理文件,在 .wav 文件的文件夹上运行 cmd 行“lame.exe [options] [infile] [outfile]”。

就像是

FOR %%f IN (dir *.wav) DO (lame.exe -V0 -h %%f.wav %%f.mp3)

当然这是错误的但是...我如何为此生成正确的 [infile] [outfile] 参数?

batch-file lame

2
推荐指数
1
解决办法
5713
查看次数

在动态生成列表名称时迭代列表

如何遍历名称将动态生成的列表?

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)

问题是骨头被评估为一个字符串,当我需要它作为列表的名称进行评估时.

python

0
推荐指数
1
解决办法
2332
查看次数

标签 统计

batch-file ×2

lame ×1

python ×1