![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
mr.quintin
运维工程师 c++ python程序员
展开
-
解决paramiko库在密码为空的情况下登陆失败的问题
发现源码client.py文件中缺少了在该情况下的逻辑进入,添加以下内容即可。原创 2023-08-31 09:56:36 · 177 阅读 · 0 评论 -
python的正则
正则表达式的主要用途 匹配字符串 替换字符串的一部分 搜索字符串 将字符串拆解成子字符串 正则表达式的方法 \w --> 匹配字母数字字符 [a-z,A-Z,0-9] \W --> 匹配非字母数字字符 \d --> 匹配数字 [0-9] \D --> 匹配所有非数字 \s --> 匹配一个空格字符 \S --->匹配除空格外的所有字符 \...转载 2019-01-24 11:21:45 · 113 阅读 · 0 评论 -
linux vim 编写代码python使用tab补全
安装配置:wget https://github.com/rkulla/pydiction/archive/master.zipunzip -q mastermv pydiction-master pydictionmkdir -p ~/.vim/tools/pydictioncp -r pydiction/after ~/.vimcp pydiction/complete-dict ...转载 2019-03-09 17:05:39 · 280 阅读 · 0 评论 -
pyinstaller 打包exe 问题解决
Traceback (most recent call last): File "C:\Users\qiyong.GWMFC\venv\Scripts\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstalle...转载 2019-04-02 09:49:48 · 1509 阅读 · 0 评论 -
python3对于时间的处理
1、获取当前时间戳 float_time = time.time() 2、格式化当前时间 #格式化当前时区时间 now_time = time.strftime('%Y-%m-%d %H:%M:%S') print(now_time) 3、时间戳转时间 #时间戳转为本地时间 local = time.localtime(1505284047.1286137) #时间戳转格林尼治时间...转载 2019-05-23 07:57:06 · 169 阅读 · 0 评论