cost 390 ms
Ruby: split string in hash

I have a string str = "race_1: 650m, 215m, 265m, 315m\r\nrace_2: 165m, 215m, 265m, 315m." Expected result: I wanted to split this in a hash like thi ...


 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM