haichuan5121 当前离线
三级士官
CrLf 当前离线
论坛巡查
@echo off for /f "tokens=2,3 delims=," %%a in ('findstr /l "[kw] [a] [v]" 361.csv') do ( for /f "delims=[]" %%a in ("%%a") do echo %%a:%%b ) pause复制代码
TOP
依山居 ( 伸手党去死,私信问问题的去死)当前离线
中尉
fawk=open("361.csv","r") for line in fawk.readlines(): l=line.split(",") if "kW" in l[1] and "99.8" in l[3]: print(l[1],l[3]) elif "200" in l[3] and "A" in l[1]: print(l[1],l[3]) elif "498" in l[3] and "V" in l[1]: print(l[1],l[3])复制代码
[kW] 99.8 [A] 200 [V] 498 [kW] 99.8 [A] 200 [kW] 99.8 [kW] 99.8复制代码
bailong360 (zhonghua)当前离线
上尉
DAIC 当前离线
中将