擅长:python、mysql、java
<pre><code>lst = ['16:11:40.894 0,Type=IsXover,Count=1,lp-isD=2',
'16:11:40.894 0,Type=IsXover,Count=54,lp-xsD=1',
'16:11:40.894 0,Type=IsXover,Count=201,lr-isD=3',
'16:11:40.894 0,Type=IsXover,Count=3075,lp-gsD=5']
def extract_num(text):
txt1 = text[text.find("Count=")+6:]
txt2 = txt1[:txt1.find(",")]
return int(txt2)
lst.sort(key=extract_num)
print(lst)
</code></pre>