摘要: 也刷leetcode, 先把锁掉的题目留备份好了: 156 Binary Tree Upside Down [1] Problem: Given a binary tree where all the right nodes are either leaf nodes with a sibling 阅读全文
posted @ 2016-02-10 11:27 robinali 阅读(3141) 评论(0) 推荐(0) 编辑
摘要: EXCEL + VBA, 按照一切数据均可处理的原则。 这俩组合给非码工提交使用还是不错的。 今天遇上了一个有意思的case: Excel遍历不符合预期, 不得不多轮遍历处理数据。记录备需。 详情如下: 客户(免费帮忙校友)的需求如下: 数据(输入) 数据表格通过Excel格式存储,仅一页数据, 多 阅读全文
posted @ 2021-08-18 10:24 robinali 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 个人博客的中文小记,英文版:git-notes GIT和Apache Subversion属于常见的代码版本控制的工具,本帖小记GIT常用指令已作参考。 安装 GitHub Desktop GitHub for Windows https://windows.github.com GitHub fo 阅读全文
posted @ 2021-08-17 11:38 robinali 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 同事上传的,其中的一段意外的非常喜欢。唔,也有之前偷懒就没写这段代码的缘故。 自认为,写不出这么简洁漂亮且容易读懂的代码,赞!if (gen_checksum) { int i; char checksum = 0; infoframe[3] = 0x00... 阅读全文
posted @ 2016-01-16 10:21 robinali 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Property Let StatementProperty Get StatementProperty Set StatementFrom: http://msdn.microsoft.com/en-us/library/aa266200(v=vs.60).aspxProperty Let Statement ExampleThis example uses the Property Let statement to define a procedure that assigns a value to a property. The property identifies the pen c 阅读全文
posted @ 2013-03-08 07:25 robinali 阅读(1954) 评论(0) 推荐(0) 编辑
摘要: IntroductionClasses are a very powerful tool in intermediate to advanced level VBA programming. This page is an introduction to what a class and an object are and will hopefully get you started working with classes. This is by no means a comprehensive guide. Entire books have been written about Obje 阅读全文
posted @ 2013-03-08 07:01 robinali 阅读(1090) 评论(0) 推荐(0) 编辑
摘要: 1. 作为一个脚本呢语言, Python 有怎样的特性?因为 Python 程序不用编译,它是人写的程序文件,可以直接执行,就像话剧脚本一样,所以也称 Python 程序文件为脚本。在交互式命令行环境中,固然可以立即获得执行结果, 但是在尝试过程中的各种程序代码无法被记忆下来,所以,事先写好脚本很重要,使用运行命令“python 脚本名.py”的形式就可以反复执行所有代码行。脚本是Python 丰富的运行形式之一,也是最常用的一种。 -- From 《可爱的Python》。2. Python 的 程序结构, 如何 调用子程序?2.1 函数声明 -- From <diveintopytho 阅读全文
posted @ 2013-01-15 04:29 robinali 阅读(183) 评论(0) 推荐(0) 编辑