随手记一下
摘要:写了一点 Perl 代码,给数据排序的时候发现,其实下面这种写法挺啰嗦的, @all = sort { $a->{groups} <=> $b->{groups} } @all; 相比之下,Python的写法如下, all = sorted(all, key=lambda x: x["groups"
阅读全文
posted @ 2022-01-09 00:48
posted @ 2022-01-09 00:48
posted @ 2022-01-07 16:16