- 博客(5)
- 收藏
- 关注
转载 Python内建函数之——filter,map,reduce
在讲述filter,map和reduce之前,首先介绍一下匿名函数lambda。 lambda的使用方法如下:lambda [arg1[,arg2,arg3,...,argn]] : expression 例如: [python] view plain copy>>> add = lambda x,y :
2017-05-21 21:07:44 283
原创 nohup执行python脚本看不到log
python的输出有缓冲,导致log并不能够马上看到输出。-u参数,使得python不启用缓冲。所以修改命令即可:nohup python -u test.py > log &
2017-05-17 15:04:52 2319 1
原创 LeetCode 450.Delete Node in a BST
public static class TreeNode { int val = 0; TreeNode left = null; TreeNode right = null; public TreeNode(int val) { this.val = val; } } public TreeNode findLeftMax(TreeNode root) {
2017-05-08 19:28:55 223
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人