In this lesson, we'll find out the basics of running Docker containers. We'll go over how to download images from Docker Hub, what happens when you st ...
分类:
其他好文 时间:
2016-12-02 07:43:00
阅读次数:
183
首先需要一个能包含所有活动的类 到最后可以调用这个对象的方法 销毁所有活动 package com.example.broadcastbestpractice; import java.util.ArrayList;import java.util.List; import android.app. ...
分类:
移动开发 时间:
2016-12-02 03:31:05
阅读次数:
413
Fragment有一个公共的桥梁 Activity ...
分类:
其他好文 时间:
2016-12-02 01:17:16
阅读次数:
169
用Python写一个爬虫,用BeautifulSoup解析html。其中一个地方需要抓取下面两类标签:<dd class="ab " >blabla1</dd><dd class="ab cd" >blabla2</dd>第一类class的值的末尾有一个空格。第二类class的值中间有一个空格,而且 ...
分类:
其他好文 时间:
2016-12-02 01:06:32
阅读次数:
321
Given a binary tree, find the maximum path sum. (Hard) For this problem, a path is defined as any sequence of nodes from some starting node to any nod ...
分类:
其他好文 时间:
2016-12-02 00:57:18
阅读次数:
314
画黑底白字的软件:KolourPaint。 假设所有“1”的图片放到名字为1的文件夹下。(0-9类似)。。获取每个数字的名称文件后,手动表上标签。然后合成train。txt 1、获取文件夹内全部图像的名称: find ./1 -name '*.png'>1.txt //此时的1.txt文件中的图像名 ...
分类:
其他好文 时间:
2016-12-01 22:30:41
阅读次数:
462
1.find(在一个较长的字符串中查找子串,它返回的是子串所在位置的最左端索引,如果没有就会返回-1) 2.join(连接序列中的元素,连接的元素必须是字符串) 3.lower(返回字符串的小写字母版) 4.replace(返回某字符串的所有匹配项均被替换之后得到字符串) 5.split(将字符串分 ...
分类:
微信 时间:
2016-12-01 21:35:03
阅读次数:
232
Analysis: Given a string s, find out all chars that are invalid (i.e., count < k). The longest substring must reside in one of the substrings divided ...
分类:
其他好文 时间:
2016-12-01 14:23:42
阅读次数:
172
136. Single Number Given an array of integers, every element appears twice except for one. Find that single one. Bit: a ^ a = 0; 137. Single Number II ...
分类:
其他好文 时间:
2016-12-01 14:10:00
阅读次数:
215
校验和(checksum)程序用来从文件中生成检验和秘钥,然后利用这个校验和秘钥核实文件的完整性。 用于文件完整性测试的特定秘钥就称为校验和。 校验和对于编写备份脚本或系统维护脚本来说非常重要。1、最知名且使用最为广泛的校验和技术是md5sum和SHA-1。他们对文件内容使用相应的算法来生成校验和。 ...
分类:
其他好文 时间:
2016-12-01 11:55:46
阅读次数:
171