📅  最后修改于: 2022-03-11 14:46:32.198000             🧑  作者: Mango
# Example usage:
your_list = ['cmd1','cmd10', 'cmd111', 'cmd50', 'cmd99']
your_list.sort(key=lambda x: int(x[3:]))
print(your_list)
--> ['cmd1', 'cmd10', 'cmd50', 'cmd99', 'cmd111']