参考链接: https://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html https://www.cnblogs.com/JimmyZhang/archive/2008/08/22/1274342.html 1.委托 a.定义一个 ...
$repeat=$true do { Write-Host "1 - MENU" Write-Host "2 - MOVE" Write-Host "3 - EXIT" [int]$selection=Read-Host "make your selection:" switch ($selecti ...
分类:
其他好文 时间:
2019-12-07 16:19:58
阅读次数:
84
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Note: T ...
分类:
其他好文 时间:
2019-12-07 10:41:18
阅读次数:
72
PIL:使用python自带图像处理库读取出来的图片格式 numpy:使用python opencv库读取出来的图片格式 tensor:pytorch中训练时所采取的向量格式(当然也可以说图片) PIL与Tensor相互转换 numpy 与 tensor相互转换 N张图片一起转换. 参考:https ...
分类:
其他好文 时间:
2019-12-07 01:16:57
阅读次数:
161
栈: 用数组实现栈: class ArrayStack(object): def __init__ (self): self._data = [] def __len__ (self): return len(self._data) def is_empty(self): return len(se ...
分类:
其他好文 时间:
2019-12-06 19:30:25
阅读次数:
67
WatchManager类用作管理watcher、其对应的路径以及触发器,其方法都是针对两个映射的操作。
分类:
其他好文 时间:
2019-12-06 15:17:10
阅读次数:
88
Leha somehow found an array consisting of n integers. Looking at it, he came up with a task. Two players play the game on the array. Players move one ...
分类:
其他好文 时间:
2019-12-06 00:28:45
阅读次数:
94
1.修改vim /etc/yum.repos.d/CentOS-Base.repo ,把http协议修改为https 2. cat /etc/redhat-release 查询CentOS版本安装对应版本的epel CentOS7使用yum需要安装epel epel安装 sudo yum insta ...
分类:
其他好文 时间:
2019-12-04 13:40:03
阅读次数:
94
centos7的服务器,没有yum,没有wget命令真的寸步难行,经过总结和查询,现在算搞定了,把经验总结一下,以免大家再浪费时间去找原因; 安装yum需要wget安装yum的rpm包,所以前提是先有wget,服务器上没有wget的包怎么办,就去国内的镜像源去找,我这里是找的网易163的,http: ...
分类:
其他好文 时间:
2019-12-04 01:49:31
阅读次数:
3768
RubyGem 1. 网上推荐的 淘宝的镜像 已经无法访问 2. "清华镜像" 3. "Ruby China镜像" 参考: 1. https://ruby china.org/topics/38000 2. https://mirror.tuna.tsinghua.edu.cn/help/rubyg ...
分类:
其他好文 时间:
2019-12-02 23:56:54
阅读次数:
236