
问题
Mark周末
这个作者很懒,什么都没留下…
展开
-
An attempt has been made to start a new process
An attempt has been made to start a new process before the current process has finished its bootstrapping phaseAn attempt has been made to start a new process before the current process has finished its bootstrapping phase修正:加上if __name__ == '__main__':原创 2020-06-04 00:37:05 · 492 阅读 · 1 评论 -
中跟遍历,输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构)。
输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构)假设元素无重复,采用中跟遍历,不包含##这种,因为中庚遍历可以确定一颗二叉树。解答步骤第一步:声明结构体struct Node{ int val; Node *LC; Node *RC; Node(int k){ this->val=k; LC=NULL; RC=NULL; ...原创 2019-12-11 12:50:03 · 175 阅读 · 0 评论 -
程序对非循环片段 多次执行原因 多线程
代码参考 莫烦python githubimport torchimport torch.utils.data as Datatorch.manual_seed(1) # reproducibleprint ('count')BATCH_SIZE = 5# BATCH_SIZE = 8x = torch.linspace(1, 10, 10) # this is...原创 2019-12-09 21:12:55 · 143 阅读 · 0 评论