Given a binary tree rooted at root, the depth of each node is the shortest distance to the root. A node is deepest if it has the largest depth possibl ...
分类:
其他好文 时间:
2020-02-06 11:07:31
阅读次数:
74
今天学了TensorFlow文件读取操作 一,读取图片文件 def read_picture(): """ 读取狗图片案例 :return: """ # 1、构造文件名队列 # 构造文件名列表 filename_list = os.listdir("./dog") # 给文件名加上路径 file_l ...
分类:
其他好文 时间:
2020-02-06 01:06:09
阅读次数:
77
题目来源 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair ...
分类:
编程语言 时间:
2020-02-05 18:43:00
阅读次数:
78
Servlet 被服务器实例化后,容器运行其 init 方法,请求到达时运行其 service 方法,service 方法自动派 遣运行与请求对应的 doXXX 方法(doGet,doPost)等,当服务器决定将实例销毁的时候 调用其 destroy 方法。 与 cgi 的区别在于 servlet ...
分类:
其他好文 时间:
2020-02-04 15:49:26
阅读次数:
69
问题描述 分析 代码 在exercism.io被这个 Zebra Puzzle 难住了。这里一步一步的解决。。。1.There are five houses.2.The Englishman lives in the red house.3.The Spaniard owns the dog.4.... ...
分类:
其他好文 时间:
2020-02-04 14:12:47
阅读次数:
77
1. Objects&Class--对象&类 Object ? Objects have states and behaviors. An object is an instance of a class. Example: A dog has states - color, name, breed ...
分类:
其他好文 时间:
2020-02-02 23:47:07
阅读次数:
100
1 ###################################################################[@wooluwalkerdeMacBook-Pro:wenjian (dev)]$ git dog * db69602 (HEAD -> dev) add te ...
分类:
其他好文 时间:
2020-02-02 23:19:15
阅读次数:
542
添加Git 操作别名,提高效率: 其中,git dog: 以图形化方式展示git log [@wooluwalkerdeMacBook-Pro:wenjian (dev)]$ vim ~/.gitconfig [user] name = *** email = ***.com [alias] co ...
分类:
其他好文 时间:
2020-02-02 18:07:42
阅读次数:
86
面向对象进阶小结 一、面向对象进阶小结 面向对象最本质解决的问题就是:提供可扩展性 类与对象:程序中必须现有类,再有对象 类中有属性,有方法 绑定方法:定义在类内部,没有装饰器装饰的方法都是对象的绑定方法,需要对象来调用,对象调用的时候,会把自身传入 1.1 类的继承 继承父类,则会有父类的所有属性 ...
分类:
其他好文 时间:
2020-02-01 23:03:25
阅读次数:
71