需要排序的姓名及其编号列表 .TXT 文件
我有一个名称列表(不超过 100 个名称),每个名称都有一个值(3 或 4 位数字)。
约翰2E=1023
玛丽2E=1045
弗雷德2E=968
等等...它们的格式与 .txt 文件中的格式完全相同。我有Python和Excel,也愿意下载我需要的任何东西。
我想要做的是根据所有名称的值降序对所有名称进行排序,因此最高的位于顶部。我尝试通过将 '2E=' 替换为 ',' 来使用 Excel,这样我就可以获得名称、值,然后重要的数据,因此每个数据都在单独的列中,但除了 A 之外,我仍然无法以任何其他方式对它们进行排序Z.
非常感谢您的帮助,在发布此内容之前我确实花了时间四处查看。
I have a list of names (never over 100 names) with a value for each of them, either 3 or 4 digits.
john2E=1023
mary2E=1045
fred2E=968
And so on... They're formatted exactly like that in the .txt file. I have Python and Excel, also willing to download whatever I need.
What I want to do is sort all the names according to their values in a descending order so highest is on top. I've tried to use Excel by replacing the '2E=' with ',' so I can have the name,value then important the data so each are in separate columns but I still couldn't sort them any other way than A to Z.
Help is much appreciated, I did take my time to look around before posting this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将“2E=”替换为制表符,以便数据在 Excel 中以两列显示。然后对值列进行排序。
Replace the "2E=" with a tab character so that the data is displayed in excel in two columns. Then sort on the value column.