![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小技巧
sinat_27889599
这个作者很懒,什么都没留下…
展开
-
bash 命令汇总
参考scp -T username@ip.of.server.copyfrom:“file1.txt file2.txt” “~/yourpathtocopy”# 只需输一个密码scp username@ip.of.server.copyfrom:"file1.txt file2.txt" "~/yourpathtocopy"原创 2020-05-19 10:41:58 · 172 阅读 · 0 评论 -
python装饰器检测函数运行时间
原文连接import time def timeit(method): def timed(*args, **kw): ts = time.time() result = method(*args, **kw) te = time.time() print('method name :{0}, args: {1}, kw: {2}, t转载 2020-05-19 10:35:27 · 521 阅读 · 0 评论 -
jupyter notebook中%与!的区别
reference in stack overflow!开一个新的progress,执行完之后立即终止;provided by the Jupyter%的操作会持续;provided by the IPython kernel! mkdir folder1! cd folder1 ! touch file1 # 上一行的cd产生的效果没有保留下来! tree/content/d...翻译 2020-04-14 12:59:12 · 5161 阅读 · 4 评论 -
处理循环数组的技巧
通过取余,可以处理循环数组的情况循环数组相关的问题:the next greater number分pizza问题排成环形的房子House Robber ii(后两者目前的解决办法没有用到取余来循环的方式)...原创 2020-03-22 20:07:12 · 252 阅读 · 0 评论