- 博客(10)
- 资源 (8)
- 问答 (2)
- 收藏
- 关注
原创 利用Volume在主机和Docker容器文件传输。
之前写过一篇关于Docker容器和本机之间的文件传输。的文章,但是此方法相对比较繁琐一些,在查看了官方关于数据管理的文档之后发现利用volume来实现主机和容器的文件传输效率更高一点,其实也就是将本地的目录进行挂载到容器上,官方一共有三种方法:Manage data in Docker, 这里只介绍使用volume的操作:Use volumes1.使用Volume在主机和容器之间传输文件。在官方
2017-11-19 16:57:45 8461
原创 C语言中socket使用讲解。
1.socket定义。在Linux中的网络编程是通过socket接口来进行的。其实socket接口也是一种特殊的I/O(在《深入理解计算机系统》这本书中的IO部分也有提到网络也是一种特殊的IO),它也是一种文件描述符。socket也有一个类似于打开文件的函数调用,该函数返回一个整型的socket描述符,随后的建立连接、数据传输等操作都是通过socket来实现的。2.socket的类型。1 .流式so
2017-11-06 20:52:51 24730 5
原创 485. Max Consecutive Ones。
Given a binary array, find the maximum number of consecutive 1s in this array.Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two digits or the last three digits are consecutiv
2017-11-28 21:25:21 676
原创 442. Find All Duplicates in an Array。
Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twice in this array.Could you do it without extra space
2017-11-27 21:03:43 774
原创 566. Reshape the Matrix。
In MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new one with different size but keep its original data.You’re given a matrix represented by a two-dimensio
2017-11-25 19:56:29 578
原创 561. Array Partition I。
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possibl
2017-11-21 20:35:53 950
原创 LeetCode目录。
本目录只会在一个Tag完成之后更新,实时更新目录:https://github.com/jiajia0/LeetCode。按照LeetCode的Tags来区分的话,目前共有34个Tag,只列出已经解决的题,各分类中按照题目编号排序:Linked List。Solved:21/28 # Title Difficulty 2 Add Two Numbe
2017-11-21 18:41:33 581
原创 725. Split Linked List in Parts。
Given a (singly) linked list with head node root, write a function to split the linked list into k consecutive linked list “parts”.The length of each part should be as equal as possible: no two parts s
2017-11-20 20:53:47 1179
原创 Docker命令小记。
记录一下Docker中的命令,容器名称以:leafage 为例。启动docker:systemctl start docker( RHEL7 红帽企业版”(Red Hat Enterprise Linux)) / service docker start (Linux 6)开机启动docker:service dorcker enable (6)/ systemctl enable docker
2017-11-17 21:46:19 575
原创 利用Python分析学校四六级过关情况。
这段时间看了数据分析方面的内容,对Python中的numpy和pandas有了最基础的了解。我知道如果我不用这些技能做些什么的话,很快我就会忘记。想起之前群里发过一个学校的四六级成绩表,正好可以用来熟悉一下pandas中的一些用法。1.数据介绍。成绩表中包含的字段十分详细,里面有年级、性别、姓名、分数等等的一系列内容,我只想简单的分析一下我们学校的四六级过关率而已,所以去除了一些不必要的字段。留下的
2017-11-17 14:08:26 1547 4
系统分析与设计-小云铺上商城系统
2017-12-26
关于javascript 中的addLoadEvent重复实现函数问题
2016-09-20
c++控制台如何动态显示数字?
2016-04-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人