谭九鼎
谭九鼎
see this [code](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%BA%8C%EF%BC%9A%E5%86%85%E6%A0%B8%E6%A8%A1%E5%9D%97%E7%BC%96%E7%A8%8B/e2.c#L22).  It will always has a pid 0 sibling even if there is actually no sibling. And if I use `p->parent->children` then everything works fine.
see this [user mode program](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%B8%80%EF%BC%9A%E6%B7%BB%E5%8A%A0%E7%B3%BB%E7%BB%9F%E8%B0%83%E7%94%A8%E4%B8%8E%E7%BC%96%E8%AF%91%E5%86%85%E6%A0%B8.md). > warning: implicit declaration of function 'printk'.
see this [code](https://github.com/imba-tjd/HDUHomeWork/blob/master/OperatingSystem/%E5%AE%9E%E9%AA%8C/%E5%AE%9E%E9%AA%8C%E4%B8%89(4)%EF%BC%9A%E5%85%B1%E4%BA%AB%E5%86%85%E5%AD%98%E8%BF%9B%E7%A8%8B%E9%80%9A%E4%BF%A1/sender.c#L16). I have included `unistd.h` and `sys/types.h`, but it doesn't work. However, my program did't report 'bus error' and crash.  
Programs are [main.cpp](https://github.com/imba-tjd/HDUHomeWork/blob/master/InformationSecurityTechnology/RSA/main.cpp) and [rsa.cpp](https://github.com/imba-tjd/HDUHomeWork/blob/master/InformationSecurityTechnology/RSA/rsa.cpp). It would success sometimes but also fail sometimes. The biggest problem is that it's hard to debug, I can't distinguish whether a variable is valid....
```js // much *much* better :) var myListHTML = document.getElementById("myList").innerHTML; for (var i = 0; i < 100; i++) { myListHTML += "" + i + ""; } ``` ~~String...
Seems dead
emmmm这一部分在 https://github.com/miloyip/json-tutorial/issues/15 已经有了 在没有看答案的情况下试着实现了一下[教程2的lept_parse_number](https://github.com/miloyip/json-tutorial/blob/master/tutorial02/tutorial02.md#5-%E5%8D%81%E8%BF%9B%E5%88%B6%E8%BD%AC%E6%8D%A2%E8%87%B3%E4%BA%8C%E8%BF%9B%E5%88%B6)中的validate number,发现和答案的意思不一样。 我做出来的效果是:把context里的json字符串一直检验到底,只要有不符合要求的字符就返回`LEPT_PARSE_INVALID_VALUE`。所以看到测试用例的时候觉得很奇怪,`0x0`居然是`LEPT_PARSE_ROOT_NOT_SINGULAR`,理论上x是非法字符才对。 还有就是发现对`1.`进行了测试而没有对`1e`进行测试。`1.`在事实上可以转换成`1`,而`1e`则会报错。所以感觉上就应该放在`LEPT_PARSE_INVALID_VALUE`的测试里吧。 **但是** 看了答案以后发现,原来只要找到第一个完整解析完成的位置就好了,剩下的需要算作`LEPT_PARSE_ROOT_NOT_SINGULAR`。仔细一想这样也是,上面的疑问就没有了。 所以,建议老师在这一方面加点提示,不要让大家想错了。 不过我觉得应该加一个123 的测试,证明一下数字的`lept_parse_whitespace`有效,还有往`LEPT_PARSE_ROOT_NOT_SINGULAR`里加一个`123 123`的测试。如果老师觉得现有的足够就无视吧:joy: --- 然后有一个问题,可不可以完全用一个正则来验证。 `^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?`这个正则生成的[图像](https://regexper.com/#%5E-%3F%280%7C%5B1-9%5D%5Cd*%29%28%5C.%5Cd%2B%29%3F%28%5BeE%5D%5B%2B-%5D%3F%5Cd%2B%29%3F)应该是与教程中的图一样的,其他的测试都过了,但是它能匹配到`1.`的1。这样就不会是`LEPT_PARSE_INVALID_VALUE`而是`LEPT_PARSE_ROOT_NOT_SINGULAR`了。 不过现在加了一下判断匹配失败的地方如果是`.`,就返回-1。这样就搞定了。 --- emmmm这个应该是bug了。少了一个单纯的负号的测试,应该属于`LEPT_PARSE_ROOT_NOT_SINGULAR`才对,加了以后会不过。`1E`也没过……
I'm opening this issue because: - [ ] I have found a bug - [x] I want to request a feature - [ ] I have a question - [...
Original code: ```python x = 5 class SomeClass: x = 17 y = [x for i in range(10)] ``` I find the expression in `in` is bind to x in...
The Win part of installation guide is outdated and inaccurate. * https://pyinstaller.readthedocs.io/en/stable/requirements.html * https://pyinstaller.readthedocs.io/en/stable/installation.html It mentions things like pypiwin32, pip-Win, easy_install. The content is not very large. However I'm not...