目录
前言:
1.1 which
1.2 alias
基本指令
2.1 ls -ld
2.2 cd
2.3 mkdir tree
2.4 rmdir rm *
2.5 cp
2.6 mv
2.7 cat tac
2.8 man 前言:
上文是Linux的部分基础指令,主要是开胃菜,先熟悉一下,但是本…
解法: 字典统计排序
class Solution:def topKFrequent(self, nums: List[int], k: int) -> List[int]:cont {}for eve in nums:if eve not in cont: cont[eve] 1else: cont[eve] 1contlist sorted(cont.items(), keylambda x: x[1])res [eve[0] for eve i…