- 博客(11)
- 收藏
- 关注
原创 Import fcntl error
pip install fcntlCollecting fcntlCould not find a version that satisfies the requirement fcntl (from versions: )解决:自己新建一个fcntl.py文件,内容如下,然后将其放在Python的安装目录: C:\Python36\Lib 下# fcntl.pydef fc...
2020-04-29 11:13:13 822
原创 Oracle SYSDATE + 1/16什么意思
SYSDATE+1 当前时间+1天SYSDATE+1/16 当前时间+1.5小时计算过程如下:一天24小时24*1/16=1.5
2020-04-15 16:07:14 795
原创 Oracle 中的动态SQL-----execute immediate
用于存储过程中的动态SQL执行例如:有个查询表行数的存储过程,传入的参数是表名这种情况,直接select count(*) from v_变量 是无法执行的只能定义一个变量,然后拼接变量,再调用execute immediate执行CREATE OR REPLACE PROCEDURE TEST(P_NAME IN VARCHAR, ...
2020-04-09 18:09:07 254
原创 Airflow发邮件smtplib实例
import smtplibfrom email.mime.text import MIMETextfrom email.header import Headerfrom email.mime.multipart import MIMEMultipartfrom airflow import configuration as conf#从airflow.cfg中获取自己配置的发送邮箱...
2020-03-20 17:51:04 1072
原创 Oracle插入CLOB类型超过4000个字符报错的解决方法
SQL更改如下:DECLARE v_sql CLOB;BEGINv_sql := RPAD('*', 4000, '*') || RPAD('*', 4000, '*');INSERT INTO TEST( STATUS, BODY) VALUES( 'complete', v_sql, );COMMIT;END;
2020-03-16 15:40:14 3990
原创 Python定时任务框架Apscheduler实例-----每隔10分钟扫描FTP的文本,下载到本地,非月结期间调airflow工作流
1.安装anacondahttps://www.jianshu.com/p/d3a5ec1d9a082.安装虚拟环境monitor//创建虚拟环境monitorconda create -n monitor python=3.6//查看已创建的虚拟环境conda info -e3.安装Apscheduler,FTP工具包,Requestspip install ap...
2020-03-13 17:16:40 828
原创 Spring Boot配置ssl证书 Http转Https
##################################################在application.yml server下添加:server: ssl: # 服务器证书的具体路径 key-store: /data/server/keys/slttuhuee8g.jks key-store-type: JKS key-al...
2020-03-11 16:06:04 104
原创 Mybatis中mapper.xml中like模糊查询字符串,日期写法
字段为字符串格式 <if test="test != null and test != ''"> and TEST like CONCAT(CONCAT('%',#{test}),'%')</if> 字段为日期格式,前端传参格式为2020-03-09 <if test="testdate != null"> and TO_CH...
2020-03-09 15:13:27 1591
转载 中文情感分析实例---WordNet
1.安装nltk pip install nltk2.下载文本到本地----wordnet汉语开放词网,可从以下网址下载:http://compling.hss.ntu.edu.sg/cow/----停用词:参考以下网页,另外加入常用标点符号http://blog.csdn.net/u010533386/article/details/514585913.下载WordNet...
2019-02-27 10:40:54 1948
原创 Python------AI实例
1.依赖安装包---安装 scipy python -m pip install --user scipy----安装 matplotlib pip install matplotlib----安装 numpy+mkl 先进入numpy+mkl下载找到适合自己的版本,然后 cd 到numpy+mkl所在的目录下,安装 pip install nu...
2019-02-26 14:41:14 2440
原创 Anaconda创建虚拟环境
windows+R-----cmdconda create -n planning-ui python=3.6conda info -eactivate planning-ui
2019-02-25 15:14:40 821
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人