上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: 1、新建Item,输入名称后选择Freestyle project后点击确定 2、配置项目,自定义工作目录 3、配置源码管理和要摘取的分支 4、构建触发器选择github触发 5、构建选择执行windows命令,之后点击保存 #--disable-gpu,跳过语言设置,如不加此选项构建时会卡在语言设 阅读全文
posted @ 2022-03-09 16:46 風£飛 阅读(572) 评论(0) 推荐(0)
摘要: 1、图片转base64 # !/usr/local/python3.8/bin/python3 # -*- coding:UTF-8 -*- import os import base64 # 图片文件夹是/root/images log_d = '/root/images' logFiles = 阅读全文
posted @ 2022-01-27 11:12 風£飛 阅读(277) 评论(0) 推荐(0)
摘要: import os, sys # 获取当前脚本所在路径 scriptRunPath = os.path.abspath(__file__) print(scriptRunPath) # 获取当前脚本的上级目录 dirScriptRunPath = os.path.dirname(os.path.di 阅读全文
posted @ 2022-01-17 14:47 風£飛 阅读(326) 评论(0) 推荐(0)
摘要: #!/usr/bin/python3 # -*- coding:utf-8 -*- from gevent import monkey # 解决requests post请求递归次数太多的问题,一定要在导入gevent模块前导入 monkey.patch_all() from gevent impo 阅读全文
posted @ 2021-12-17 15:19 風£飛 阅读(15) 评论(0) 推荐(0)
摘要: 一、相关依赖包 pip install xlrd # 读excel文档库,不支持.xlsx格式 pip install openpyxl # excel文档库,支持.xlsx格式 pip install docx-mailmerge # world文档库 pip install python-doc 阅读全文
posted @ 2021-12-14 17:06 風£飛 阅读(190) 评论(0) 推荐(0)
摘要: 一、安装nginx服务依赖root@nginx:~# apt-get updateroot@nginx:~# apt install -y build-essential #安装gccroot@nginx:~# apt install -y libpcre3 libpcre3-devroot@ngi 阅读全文
posted @ 2021-12-08 11:26 風£飛 阅读(568) 评论(0) 推荐(0)
摘要: 一、环境准备docker中安装uwsgi报错:ERROR: Command errored out with exit status 1,需要安装以下组件ubuntu: apt install build-essential #安装gccubuntu: apt install python3-dev 阅读全文
posted @ 2021-11-24 11:32 風£飛 阅读(279) 评论(0) 推荐(0)
摘要: find之强大毋庸置疑,此处只是带领大家一窥find门径,更详细的说明见man find和info find。 一、Get Start最简单的find用法莫过于如此: $ find . 查找当前目录下的所有文件。find命令的一般格式为: find [-H] [-L] [-P] [path...] 阅读全文
posted @ 2021-07-30 12:44 風£飛 阅读(208) 评论(0) 推荐(0)
摘要: [root@ansible ~]# yum -y install ansible[root@ansible ~]# yum remove ansible [root@ansible ~]# ansible-doc cron #查看cron模块详细帮助信息[root@ansible ~]# ansib 阅读全文
posted @ 2021-07-23 11:06 風£飛 阅读(113) 评论(0) 推荐(0)
摘要: 在python项目中,通常我们要将功能划分为多个文件,可能出现一些,各模块需要一些公共的值、实例,同时相互存在循环引用的问题。这种循环引用在 静态语 中一般没有问题,python中无法正常运行。本文指导明如何简单的解决这个问题。 出错信息为:cannot import name 'xxx' from 阅读全文
posted @ 2021-07-21 17:49 風£飛 阅读(111) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页