擅长:python、mysql、java
<pre><code>@echo off
CALL workon my_env
CD C:\scripts
SET DataPath=C:\user\data
SET SavePath=C:\results
FOR %%q IN ( 100 75 60 50 40 33 25 10 ) DO (
FOR %%s IN ( 1 2 4 5 6 7 8 9 ) DO (
python classifier.py %%q %%s %DataPath% %SavePath%
python detector.py %%q %%s %DataPath% %SavePath%
python compiler.py %%q %%s %DataPath% %SavePath%
)
)
</code></pre>
<p>修正了以下问题:</p>
<ol>
<li>“=”附近不应有任何空格</li>
</ol>
<pre><code>SET DataPath=C:\user\data
</code></pre>
<ol start=“2”>
<li>循环变量在批处理文件中使用时必须以“%”作为前缀,并且只能是一个字母</李>
</ol>
<pre><code>%%q
</code></pre>
<ol start=“3”>
<li>变量必须封装在“%”内</李>
</ol>
<pre><code>%DataPath%
</code></pre>