问题 考察如下代码,脑回路中运行并输出结果: console.log("1"); setTimeout(function setTimeout1() { console.log("2"); process.nextTick(function nextTick1() { console.log("3" ...
分类:
Web程序 时间:
2019-04-19 00:43:28
阅读次数:
167
The elements of Arduino (C++) code. Sketch loop() setup() Control Structure break continue do...while else for goto if return switch...case while Furt ...
分类:
其他好文 时间:
2019-04-16 19:02:28
阅读次数:
282
我的学习过程有几个关键点; 1、MCP2515 CAN总线模块与ARDUINO UNO R3的接线方式; 2、程序set_mask_filter_recv的参数设置,mcp_can_dfs.h库文件设置; 3、MCP2515 CAN总线模块与mcp_can.cpp库文件的关联; 第一点看下面图片: ...
分类:
其他好文 时间:
2019-04-15 17:55:33
阅读次数:
208
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta ...
分类:
其他好文 时间:
2019-04-11 10:41:08
阅读次数:
141
在学习c++中const关键字的过程中,经常会看到各种寄存器、汇编指令分析,像下面的图这样 左图是g++中反汇编的效果,右图是vs中反汇编的效果。 如果我们想要查看源码所对应的汇编语言,应该怎么操作呢? 1.ubuntu系统g++ g++中一般使用GDB进行调试。 我的工程文件下文件结构如上所示,进 ...
分类:
编程语言 时间:
2019-04-10 23:45:11
阅读次数:
354
一、ORACLE中常见执行计划 表访问的执行计划 1、table access full:全表扫描。它会访问表中的每一条记录。 2、table access by user rowid:输入源rowid来自于用户指定。 3、table access by index rowid:输入源rowid来自 ...
分类:
数据库 时间:
2019-04-09 16:51:13
阅读次数:
164
表: 游标 declare cursor tt is select name,sal from temp; vname temp.name%type; vsal temp.sal%type;begin open tt; loop fetch tt into vname,vsal; exit when ...
分类:
数据库 时间:
2019-04-09 11:00:17
阅读次数:
148
永远在循环(loop)里调用 wait 和 notify,不是在 If 语句现在你知道wait应该永远在被synchronized的背景下和那个被多线程共享的对象上调用,下一个一定要记住的问题就是,你应该永远在while循环,而不是if语句中调用wait。因为线程是在某些条件下等待的——在我们的例子 ...
分类:
其他好文 时间:
2019-04-07 12:43:06
阅读次数:
710
所用模块 asyncore 官方介绍, 源码 英文捉鸡点 这里 源码中可以看到其实本质上就对 select 以及 socket 的进一步封装 简单说明 Python的asyncore模块提供了以异步的方式写入套接字服务的客户端和服务器的基础结构。 主要包括 asyncore.loop(…) - 用于 ...
分类:
编程语言 时间:
2019-04-06 19:03:51
阅读次数:
204