
用多個字母做分隔符,怎樣去掉某列前或列后的空格最后由 5i365 于 -11-3 08:39想取第一列或第三列的值, 想到了用多個字母做分隔符, 但是獲取的值有空格,另外還有更好的辦法嗎? 求高手支招, 感謝
nclick="copycode($('code0'));">復制代碼
- @echo off
- REM set str=Adobe PDFPrintAdobe PDF
- REM set str=Canon G1010 series PrintCanon G1010 series
- set str=hp LaserJet 1010 HBPrinthp LaserJet 1010 HB
- set str=%str:Print=#%
- for /f tokens=1,2 delims=# %%a in (%str%) do (
- echo %%a
- echo %%b
- )
- pause

