@liuidetmks #1 有的,一直用 C 。 不过 protothreads 今天还是第一次听说,看了下代码,发现局部变量应该会有问题,结果果然在网站上面找到了这样一段说明 Because protothreads do not save the stack context across a blocking call, local variables are not preserved when the protothread blocks. This means that local variables should be used with utmost care - if in doubt, do not use local variables inside a protothread!