solosseason@solosseason
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“可以报销”
“照片很好看,赞!!!其实我更羡慕的是硅谷实习[ema20]”
“【 在 flymyheart 的大作中提到: 】 : 写成target=func(self)不对吧,那这句话的意思就变成先执行func(self),把结果传给target,这个过程的执行发生在线程开始之前。 : 我的目标是线程启动后才运行func函数 嗯,不好意思,的确不对。你看这样改可以吗? t = threadin…”
“def download_thread(func): @wraps(func) def wrapper(self, *arg, **kw): print(func) print(self.download_active) t = threading.Thread(target=func(self), name='dow…”
“【 在 yohu 的大作中提到: 】 : 那不要fast = head.next.next; 应该怎么改呢? : ```python slow = fast = head hascycle = false while fast.next and fast.next.next: fast = fast.next.next…”
“【 在 yohu 的大作中提到: 】 : 我的解答在leetcode上会超时。 : 想请教python大神。这道题怎么解才能不超时? 据说在赋初值的时候不要令 fast = head.next.next 就能解决这个问题”
“【 在 luuuuuyib 的大作中提到: 】 : 这么神奇,为什么呢? 这是因为append(current)的时候是浅拷贝,仅仅传递了current的地址,没有传值,因此要改为深拷贝就可以了。 以下语句也可以 ```python #return self.result.append(copy.deepcopy(cu…”
“```python return self.result.append([]+current) #或者return self.result.append(list(current)) ```”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。