我是groovy新手。我试图在groovy中分割json对象中的值,但我似乎找不到解决方案。请在下面找到 def inputFile = new File("C:\\graph.json")
def InputJSON = new JsonSlurper().parseFile(inputFile,'UTF-8')
InputJSON.each{println i
我做了两个随机数从0到3 a=0;
b=3;
A=round(a+(b-a)*rand(1,1000));
B=round(a+(b-a)*rand(1,1000));
然后我他们中的每两位补充。然后我将其转换为二进制文件。 SUM = A + B;
binarySum = dec2bin(SUM);
,因为我想算的转变,我写这样的代码: s = 1;
for i = 1:100
case1 = """ do some test
here"""
case2 = """ do some test2
here"""
print(case1.split("some")[1].split('\n|,')[0])
既不\n也不,在这里工作。 输出应该 test
但它给我 test,
here