上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 72 下一页
摘要: Easy 6731232FavoriteShare Easy 6731232FavoriteShare Easy Given a non-empty array of digits representing a non-negative integer, plus one to the intege 阅读全文
posted @ 2018-12-22 17:53 乐乐章 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Given an array of strings, group anagrams together. Example: Input: ["eat", "tea", "tan", "ate", "nat", "bat"], Output: [ ["ate","eat","tea"], ["nat", 阅读全文
posted @ 2018-12-21 16:52 乐乐章 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 一、UML图 关键词:Subject维护一个Observer列表,Subject执行Notify()时就执行列表中的每个Observer的Update()。 二、概念 观察者模式:定义了一种一对多的依赖关系,让多个观察者对象同时监听某一主题对象。这个主题对象在状态发生变化时,会通知所有观察者对象,使 阅读全文
posted @ 2018-12-19 19:52 乐乐章 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 建造者模式(Builder):将一个复杂对象的构建和它的表示分离,使得同样的构建过程可以创建不同的表示。 角色: (1)Builder:是为创建一个Product对象的各个部件指定的抽象接口。 (2)ConcreteBuilder:是具体创建者,实现Builder接口,构造和装配各个部件。 (3)P 阅读全文
posted @ 2018-12-16 17:13 乐乐章 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 外观模式:为子系统中的一组接口提供一个一致的界面,此模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。 外观模式在什么时候使用呢? 分为三个阶段: (1)首先,在设计初期阶段,应该要有意识的将不同的两个层分离。 (2)第二,在开发阶段,子系统往往因为不断的重构演化而变得越来越复杂,大多数的 阅读全文
posted @ 2018-12-16 16:30 乐乐章 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1 def cal_sim2(A,B): 2 ''' 3 A :query [1,2] 4 B: answers [[1,2],[3,5]] 5 ''' 6 need_norm=False 7 A = np.array(A) 8 B = np.array(B) 9 A=A/np.linalg.norm(A... 阅读全文
posted @ 2018-12-07 16:03 乐乐章 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 3.输入密码,自动下载安装包和安装 4.安装IBUS框架: sudo apt-get install ibus ibus-clutter ibus-gtk ibus-gtk3 ibus-qt45.启动框架设置:im-config -s ibus(使用im-switch会报错) 6.安装拼音输入法: 阅读全文
posted @ 2018-12-06 19:46 乐乐章 阅读(1297) 评论(0) 推荐(0) 编辑
摘要: 用python实现一个简单的socket网络聊天通讯 (Linux --py2.7平台与windows--py3.6平台) 人生苦短之我用Python篇(socket编程) python之路 socket、socket server http://www.runoob.com/python/pyth 阅读全文
posted @ 2018-12-05 22:34 乐乐章 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 为linux安装字体 Linux字体文件放在/usr/share/font/,只要将字体文件拷贝到这里就可以了。这里示例安装Windows的所有字体。2,复制Windows下 的所有字体。cd命令切换到C盘挂载的目录,进入c:\windows\Fonts。使 用cp命令复制字体:cp *.ttf * 阅读全文
posted @ 2018-12-05 22:24 乐乐章 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: The encoders are all identical in structure (yet they do not share weights). Each one is broken down into two sub-layers: https://kexue.fm/archives/47 阅读全文
posted @ 2018-12-04 10:56 乐乐章 阅读(173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 72 下一页