摘要: https://docs.python.org/zh-cn/3/tutorial/controlflow.html#unpacking-argument-lists 阅读全文
posted @ 2019-12-31 19:56 不带R的墨菲特 阅读(415) 评论(1) 推荐(0)
摘要: def test(a:str,b:int)->str: print(test.__annotations__) return a+str(b)def doc_print(): """this is test doc """ passdef pack_args(args): """test 解包参数列 阅读全文
posted @ 2019-12-31 19:55 不带R的墨菲特 阅读(333) 评论(0) 推荐(0)
摘要: 1. 可以使用一下命令查使用内存最多的10个进程 ps -aux | sort -k4nr | head -n 102. 可以使用一下命令查使用CPU最多的10个进程 ps -aux | sort -k3nr | head -n 10 解释下这两个命令: -k 意思是sort 后面接数字,意思取第几 阅读全文
posted @ 2019-12-31 19:28 不带R的墨菲特 阅读(707) 评论(0) 推荐(0)