大家好,我现在有以下两段代码:第一张是原始代码,第二张是整理后的代码,我现在要做的是写出一段代码,可以由第一张转换成第二张的内容(比如怎样可以一下子把所有行的[ 模式: 1 ] => 1.0 去掉,这样不用手动一个一个改,怎样可以同时把if then do同时在每行都加上,并可以把大写字母替换成中文),我想写出一段代码可以由原始的转化成整理后的,因为手动一个一个改动太麻烦,谢谢!
1.
SCOR <= 468.500 [ 模式: 1 ]
SCOR <= 400 [ 模式: 1 ] => 1.0
SCOR > 400 [ 模式: 1 ]
A <= 100,000 [ 模式: 1 ]
B <= 6770.800 [ 模式: 1 ]
C <= 6,000 [ 模式: 1 ] => 1.0
C > 6,000 [ 模式: 1 ]
D <= 35 [ 模式: 1 ]
E<= 15 [ 模式: 1 ]
F <= 2 [ 模式: 1 ]
G<= 29.500 [ 模式: 1 ] => 1.0
G> 29.500 [ 模式: 1 ] => 1.0
F > 2 [ 模式: 1 ] => 1.0
E > 15 [ 模式: 1 ] => 1.0
D > 35 [ 模式: 1 ] => 1.0
B> 6770.800 [ 模式: 1 ] => 1.0
A> 100,000 [ 模式: 1 ] => 1.0
2.
if SCOR <= 468.500 then do;
if SCOR <= 400 then do;end;
if SCOR > 400 then do;
if A <= 100,000 then do;
if B<= 6770.800 then do;
if C <= 6,000 then do;end;
if C > 6,000 then do;
if D <= 35 then do;
if E<= 15 then do;
if F <= 2 then do;
if G<= 29.500 then do;end;
if G> 29.500 then do;end;
end;
if F > 2 then do;end;
end;
if E> 15 then do;end;
end;
if D > 35 then do;end;
end;
end;
if B> 6770.800 then do;end;
end;
if A > 100,000 then do;
end;
end;