<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[shammy_feng的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/shammy_feng</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shammy_feng]]></copyright><item><title><![CDATA[oracle 插入单引号]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/125526557</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/125526557</guid><author>shammy_feng</author><pubDate>Wed, 29 Jun 2022 17:39:28 +0800</pubDate><description><![CDATA[oracle如何插入单引号]]></description><category></category></item><item><title><![CDATA[oracle循环执行存储过程]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/124475214</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/124475214</guid><author>shammy_feng</author><pubDate>Thu, 28 Apr 2022 15:28:56 +0800</pubDate><description><![CDATA[1、功能：存储过程中for循环调用存储过程
2、场景：跑历史数据
create or replace procedure sp_loop_run is
Cursor datekeey is
select to_number(to_char(datekeey,'yyyyMMdd')) datekeey
from (select
        date'2021-01-01' + (rownum - 1)  datekeey
      from  dual connect by rownum &lt;= (]]></description><category></category></item><item><title><![CDATA[oracle update from]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/124473964</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/124473964</guid><author>shammy_feng</author><pubDate>Thu, 28 Apr 2022 14:49:33 +0800</pubDate><description><![CDATA[oracle 中update from的解决方法

]]></description><category></category></item><item><title><![CDATA[windows设置定时任务并运行python脚本（windows任务计划）]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/124178086</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/124178086</guid><author>shammy_feng</author><pubDate>Thu, 14 Apr 2022 18:16:26 +0800</pubDate><description><![CDATA[1、场景：
有些python文件需要每天定时运行
2、操作
2.1 提前准备好py文件
import xlsxwriter
import os

#更改路径
os.chdir(r"C:\Users\XXUZ\Desktop")
new_excel = '测试文件.xlsx'
if os.path.exists(new_excel) :
        os.remove(new_excel)
workbook = xlsxwriter.Workbook(new_excel)
worksheet = work]]></description><category></category></item><item><title><![CDATA[python（模块）xlsxwriter]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/124149896</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/124149896</guid><author>shammy_feng</author><pubDate>Wed, 13 Apr 2022 16:32:00 +0800</pubDate><description><![CDATA[目录一、xlsxwriter简介二、xlsxwriter语法1、模块安装2、模块导入3、创建工作簿，工作表4、设置写入格式4.1 写入4.2 设置单元格样式4.3 设置设置标签颜色4.4 列宽和行高4.5 合并单元格三、实例应用四、参考资料
一、xlsxwriter简介
新建 xlsx 文件，插入数据、插入图标等表格操作。只能新建xlsx后写入xlsx文件。
二、xlsxwriter语法
1、模块安装
pip3 install xlsxwriter

2、模块导入
import xlsxwriter

3、]]></description><category></category></item><item><title><![CDATA[python（模块）xlwt]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/124128706</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/124128706</guid><author>shammy_feng</author><pubDate>Tue, 12 Apr 2022 18:21:00 +0800</pubDate><description><![CDATA[目录一、xlwt简介二、xlwt语法1、模块安装2、模块导入3、向xls文件中写入内容4、设置写入文件的格式4.1  字体设置（font）4.2  背景颜色设置（pattern）4.3  边框设置（borders）4.4  对齐方式设置（alignment）4.5  单元格格式（num_format_str）4.6  列宽和行高三、参考资料
一、xlwt简介
xlwt仅支持 xls 格式的exce，只能新建xls后写入xls文件。
二、xlwt语法
1、模块安装
pip3 install xlwt

2、模]]></description><category></category></item><item><title><![CDATA[python（应用）中文输出拼音]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/123740069</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/123740069</guid><author>shammy_feng</author><pubDate>Fri, 25 Mar 2022 16:58:06 +0800</pubDate><description><![CDATA[一、背景
工作中有时需要生成某些建表语句要求不太严格的表，但可能上百个字段，建表时一个个字段翻译很痛苦，利用python的pypinyin模块直接翻译成拼音比较省事。
二、功能实现
1、代码
import pypinyin

def chinese2pinyin(list_data):
    """
    功能：
        获取列表的首字母
    参数：
        list_data: 列表
    输出：
        字符串
    """
    for str_data in l]]></description><category></category></item><item><title><![CDATA[oracle利用函数实现oracle表生成mysql建表DDL]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/123739104</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/123739104</guid><author>shammy_feng</author><pubDate>Fri, 25 Mar 2022 16:27:46 +0800</pubDate><description><![CDATA[目录一、应用背景二、功能实现
一、应用背景
数据的迁移在工作中经常用到，尤其是不同类型的数据库建表语法不一致，下面通过oracle函数，输出mysql建表DDL。
二、功能实现
1、代码
create or replace function fn_crea_tab_oracle2mysql
( i_owner                       in string,
  i_table_name                  in string,
  i_number_default_type ]]></description><category></category></item><item><title><![CDATA[python（应用）如何用 Python 发送通知到企业微信？]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/123711347</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/123711347</guid><author>shammy_feng</author><pubDate>Thu, 24 Mar 2022 15:44:07 +0800</pubDate><description><![CDATA[如何用 Python 通过企业微信发送告警通知？一、通知方式有哪些？二、如何实现企业微信通知？三、注意事项四、参考资料
一、通知方式有哪些？
常见的通知方式有：邮件，电话，短信，微信。
短信和电话：通常是收费的，较少使用；
邮件：适合带文件类型的通知，较正式，存档使用；
微信：适合告警类型通知，较方便。这里说的微信，是企业微信。
本文目的：通过企业微信应用给企业成员发消息。
二、如何实现企业微信通知？
1、新建应用
登陆网页版企业微信 (https://work.weixin.qq.com)，点击 应用管理]]></description><category></category></item><item><title><![CDATA[python（十二）网络爬虫]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470328</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470328</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 14:03:33 +0800</pubDate><description><![CDATA[目录一级目录二级目录三级目录
一级目录
二级目录
三级目录

]]></description><category></category></item><item><title><![CDATA[python（十一）文本处理]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470316</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470316</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 14:02:56 +0800</pubDate><description><![CDATA[目录一级目录二级目录三级目录
一级目录
二级目录
三级目录

]]></description><category></category></item><item><title><![CDATA[python（十）邮件处理]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470295</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470295</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 14:02:17 +0800</pubDate><description><![CDATA[目录一级目录二级目录三级目录
一级目录
二级目录
三级目录

]]></description><category></category></item><item><title><![CDATA[python（九）数据可视化之matplotlib]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470272</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470272</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 14:00:54 +0800</pubDate><description><![CDATA[这里写目录标题一级目录二级目录三级目录
一级目录
二级目录
三级目录

]]></description><category></category></item><item><title><![CDATA[python（八）数据分析之numpy]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470240</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470240</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 13:59:34 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[python（七）数据分析之pandas]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121470215</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121470215</guid><author>shammy_feng</author><pubDate>Mon, 22 Nov 2021 13:58:28 +0800</pubDate><description><![CDATA[python（七）数据分析之pandas一级目录二级目录三级目录
一级目录
二级目录
三级目录

]]></description><category></category></item><item><title><![CDATA[python（应用）通过sftp远程传输文件]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121358766</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121358766</guid><author>shammy_feng</author><pubDate>Tue, 16 Nov 2021 16:17:26 +0800</pubDate><description><![CDATA[参考资料
python通过sftp远程传输文件

]]></description><category></category></item><item><title><![CDATA[mysql实现序列，用于表数据唯一固定主键]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121351553</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121351553</guid><author>shammy_feng</author><pubDate>Tue, 16 Nov 2021 11:14:17 +0800</pubDate><description><![CDATA[一、业务背景
1、oracle有自增序列，mysql有auto_increment，但是后者是在插入数据时实现自增，数据每增加一行，就加1
2、需求：同一个产品\指标，同一个id，且同一个产品\指标的id一旦生成，就固定不变
二、代码
-- 1、创建表sequence：
DROP TABLE
    IF EXISTS sequence;
CREATE TABLE
    sequence
    (
        name VARCHAR(50) NOT NULL,
        current_va]]></description><category></category></item><item><title><![CDATA[Mysql按特定符号分割成多行或多列的示例]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121267906</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121267906</guid><author>shammy_feng</author><pubDate>Thu, 11 Nov 2021 14:58:00 +0800</pubDate><description><![CDATA[case when (length(path1) - length(replace (path1, "\\", ""))) / length("\\") +1 &gt;=1 
then SUBSTRING_INDEX(SUBSTRING_INDEX(path1,'\\',1),'\\', -1 ) end as first_level_directory


参考资料：
1、Mysql按特定符号分割成多行和多列的示例
2、Mysql 根据分隔符拆分某列分割成多条记录 学习教程

...]]></description><category></category></item><item><title><![CDATA[mysql统计字段中某一字符串出现的次数]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/121267774</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/121267774</guid><author>shammy_feng</author><pubDate>Thu, 11 Nov 2021 14:51:55 +0800</pubDate><description><![CDATA[思路：计算总长，接着删除指定字符串，再计算长度，两者相减，除以指定字符串的长度，得到某字符串在字段中出现的次数
代码：
select
 (LENGTH(t.range_00) - LENGTH(REPLACE (t.range_00, "false", ""))) / LENGTH("false") AS num



...]]></description><category></category></item><item><title><![CDATA[python（十三）字符串格式化]]></title><link>https://blog.youkuaiyun.com/shammy_feng/article/details/120184328</link><guid>https://blog.youkuaiyun.com/shammy_feng/article/details/120184328</guid><author>shammy_feng</author><pubDate>Wed, 08 Sep 2021 17:26:23 +0800</pubDate><description><![CDATA[目录一、字符串几种格式化方式1、“旧式”字符串解析（%操作符）2、“新式”字符串格式化（str.format）3、字符串插值/f-Strings（Python 3.6+）4、字符串模板（Python标准库）二、如何选择格式化方法三、字符串格式化符号
一、字符串几种格式化方式
1、“旧式”字符串解析（%操作符）
name = '小仙女'
age = 18
print("大家好，我叫%(name)s，我今年%(age)d岁了。"%{'name':name,'age':age})#按参数
print("大家好，我]]></description><category></category></item></channel></rss>