Combination: 1 . 1 . 1 . 1 var_a: 33 op: -9.234727046103648 Combination: 1 . 1 . 1 . 2 var_a: 31 op: -9.234270216065962 Combination: 1 . 1 . 1 . 3 var_a: 39 op: -9.233204788566372 Combination: 1 . 1 . 1 . 4 var_a: 50 op: -9.235195862495413
combination,var_a,op 1.1.1.1,33,-9.234727046103648 1.1.1.2,31,-9.234270216065962 1.1.1.3,39,-9.233204788566372 1.1.1.4,50,-9.235195862495413 <pre> What I have tried: Should I use regex or is there a simple way?
":"
line = "Combination: 1 . 1 . 1 . 1" l = line.split(":") print(l[1])
1 . 1 . 1 . 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)