Python gets part of the data from the text?
滿天的星座
滿天的星座 2017-07-05 10:35:28
0
2
863


I want to remove the key:value before the first decimal in each line, and remove the key and colon of the first key-value pair. The processing result is for example the first line. Should be
8 Timbuktu 0.022202129797066508 0.024390243902439025

滿天的星座
滿天的星座

reply all(2)
typecho

a=First row of data
b=a.split(' ')
res=b[0]+b[1].split(':')[1]+b[3]+b[4]
Like it and accept it

为情所困
line.replace(/(?<=^\d )\d+:([^ ]+) [^ ]+/, '');

Python is not installed. This is how it is represented by js (js does not support reverse order)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!