需要排序的姓名及其编号列表 .TXT 文件

发布于 2024-10-10 05:15:22 字数 392 浏览 0 评论 0原文

我有一个名称列表(不超过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的故事 2024-10-17 05:15:22

将“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文