摘要: shell脚本实现取当前时间 shell 实现获取当前时间,并进行格式转换的方法: 1)原格式输出 2018年 09月 30日 星期日 15:55:15 CST time1=$(date) echo $time1 2)时间串输出 20180930155515 1 #!bin/bash 2 time2 阅读全文
posted @ 2020-04-24 11:15 小学弟- 阅读(1300) 评论(0) 推荐(0)
摘要: 使用Git下载指定分支命令为: git clone -b 分支名 仓库地址 例如: git clone -b dev https://github.com/xxx.git 将下载分支名为2D-Attention的分支仓库。 如果直接: git clone https://github.com/xxx 阅读全文
posted @ 2020-04-24 09:48 小学弟- 阅读(7668) 评论(1) 推荐(0)
摘要: Git如何下载clone指定的tag 如上图,我想下载Tags标签为solution-4 的代码,如何处理呢? 命令如下: git clone --branch solution-4 git@github.com:zspo/learngit.git git clone --branch [tags标 阅读全文
posted @ 2020-04-24 09:42 小学弟- 阅读(10357) 评论(0) 推荐(2)
摘要: class RedisPool(object): instance = None def __init__(self, host='192.168.2.129', port=7000, password='C11O47S@xxx', db=5): self.host = 'localhost' if 阅读全文
posted @ 2020-04-24 09:31 小学弟- 阅读(467) 评论(0) 推荐(0)