<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Disany的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Disany</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Disany]]></copyright><item><title><![CDATA[conda创建python环境]]></title><link>https://blog.csdn.net/Disany/article/details/128167022</link><guid>https://blog.csdn.net/Disany/article/details/128167022</guid><author>Disany</author><pubDate>Sat, 03 Dec 2022 22:09:06 +0800</pubDate><description><![CDATA[conda命令创建python虚拟环境]]></description><category></category></item><item><title><![CDATA[python 照片heic格式转jpg]]></title><link>https://blog.csdn.net/Disany/article/details/126843454</link><guid>https://blog.csdn.net/Disany/article/details/126843454</guid><author>Disany</author><pubDate>Tue, 13 Sep 2022 23:08:20 +0800</pubDate><description><![CDATA[照片格式转换系列：heic转jpg]]></description><category></category></item><item><title><![CDATA[Python代码加密-PyArmor]]></title><link>https://blog.csdn.net/Disany/article/details/124505304</link><guid>https://blog.csdn.net/Disany/article/details/124505304</guid><author>Disany</author><pubDate>Fri, 29 Apr 2022 22:20:04 +0800</pubDate><description><![CDATA[0、快速了解
保护 Python 脚本的工具，能够加密 Python 脚本，保护运行时刻的 Python 代码不被泄露，设置加密脚本的有效期限，绑定加密脚本到硬盘、网卡等硬件设备。
PyArmor 使用动态代码生成和交叉保护机制来保证加密脚本的安全性。
1、使用PyArmor
最简单的安装方式：pip install pyarmor
查看版本号：pyarmor --version，成功在终端看到版本号即安装成功。
命令 obfuscate 用来加密脚本。最常用的一种情况是切换到脚本app.py所在的路径，然]]></description><category></category></item><item><title><![CDATA[如何提取网页上的配色]]></title><link>https://blog.csdn.net/Disany/article/details/124505102</link><guid>https://blog.csdn.net/Disany/article/details/124505102</guid><author>Disany</author><pubDate>Fri, 29 Apr 2022 21:57:00 +0800</pubDate><description><![CDATA[安利一个在Chrome浏览器中的取色工具——取色器，直接在浏览器中点击，然后复制，就可以知道颜色的色号了
1、需要下载ColorPick Eyedropper
链接：https://pan.baidu.com/s/1mJgKCnBmy1IUP5mNAhiYTg  提取码：1ysa

2、加载到Chrome

3、点击Chrome右上角小图标去愉快的使用吧


...]]></description><category></category></item><item><title><![CDATA[Oracle  一次插入多条数据]]></title><link>https://blog.csdn.net/Disany/article/details/116721773</link><guid>https://blog.csdn.net/Disany/article/details/116721773</guid><author>Disany</author><pubDate>Wed, 12 May 2021 21:30:52 +0800</pubDate><description><![CDATA[1、创建Table
create table table_name (
       id number(10),
       name varchar2(20)
       -- name varchar2(20) default 'Tom' -- 增加默认值
)

2、插入数据
单条插入
insert into table_name (id,name) values(10001,'wang_er');
insert into table_name (id,name) values(10002,'zh]]></description><category></category></item><item><title><![CDATA[anaconda历史版本下载]]></title><link>https://blog.csdn.net/Disany/article/details/116296202</link><guid>https://blog.csdn.net/Disany/article/details/116296202</guid><author>Disany</author><pubDate>Fri, 30 Apr 2021 11:22:17 +0800</pubDate><description><![CDATA[历史版下载：

历史版本下载：https://repo.continuum.io/archive/
清华大学开源软件镜像站：https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/


最新版链接：https://www.anaconda.com/products/individual#Downloads


]]></description><category></category></item><item><title><![CDATA[oracle 常用函数大礼包]]></title><link>https://blog.csdn.net/Disany/article/details/115467515</link><guid>https://blog.csdn.net/Disany/article/details/115467515</guid><author>Disany</author><pubDate>Wed, 07 Apr 2021 11:58:07 +0800</pubDate><description><![CDATA[获取当前日期是星期几
select to_char(sysdate,'day','NLS_DATE_LANGUAGE=AMERICAN') from dual;  --tuesday
select to_char(sysdate,'day','NLS_DATE_LANGUAGE=''SIMPLIFIED CHINESE') from dual; -- 星期二


]]></description><category></category></item><item><title><![CDATA[python openpyxl保留原excel格式写入数据]]></title><link>https://blog.csdn.net/Disany/article/details/113859791</link><guid>https://blog.csdn.net/Disany/article/details/113859791</guid><author>Disany</author><pubDate>Fri, 19 Feb 2021 11:13:50 +0800</pubDate><description><![CDATA[import openpyxl
wb = openpyxl.load_workbook('./映射表BASE-测试表.xlsx')
# sheetnames = wb.sheetnames # 获取所有sheetnames
ws = wb['映射表1'] # 获取指定sheet

# 查看单元格数据
print(ws.cell(6,2).value)
# 写入单元格数据
ws.cell(6,2).value = 666

# 保存
wb.save('./映射表BASE-NEW-测试表.xlsx')


..]]></description><category></category></item><item><title><![CDATA[pandas 一行转多行、多行转一行]]></title><link>https://blog.csdn.net/Disany/article/details/113859020</link><guid>https://blog.csdn.net/Disany/article/details/113859020</guid><author>Disany</author><pubDate>Fri, 19 Feb 2021 11:09:05 +0800</pubDate><description><![CDATA[文章目录1、测试数据2、一行转多行2、多行转一行
1、测试数据
df = pd.DataFrame([['张世龙', '篮球、羽毛球、英雄联盟'],
                   ['黄邵飞', '兵乓球、足球、下棋'],
                   ['刘苗苗', '绘画、写小说、跑步']])

df.columns = ['姓名','爱好']


2、一行转多行
方法一：
# 1、把渠道字段拆分，分为多列； 2、把行转列成列；3、重置索引，并删除多于的索引；4、更改名称
df_ = d]]></description><category></category></item><item><title><![CDATA[Echarts 常见的坐标轴问题]]></title><link>https://blog.csdn.net/Disany/article/details/112176295</link><guid>https://blog.csdn.net/Disany/article/details/112176295</guid><author>Disany</author><pubDate>Mon, 04 Jan 2021 14:51:34 +0800</pubDate><description><![CDATA[文章目录1、隐藏坐标轴刻度和轴线2、标签文字过多导致显示不全
1、隐藏坐标轴刻度和轴线
参考图：

调整图：

xAxis: [{
    type: "category",
    data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
    axisLabel: {
      show: true  // 显示坐标轴上的文字。
    },
    axisTick: {
      show: false  // 不显示坐标轴刻度。
   ]]></description><category></category></item><item><title><![CDATA[Echarts legend组件 图例默认选中状态]]></title><link>https://blog.csdn.net/Disany/article/details/112175501</link><guid>https://blog.csdn.net/Disany/article/details/112175501</guid><author>Disany</author><pubDate>Mon, 04 Jan 2021 14:16:18 +0800</pubDate><description><![CDATA[1、图例默认选中状态

legend: {
        data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎'],
        selected: {
            '邮件营销': true,
            '联盟广告': true,
            '视频广告': false,
            '直接访问': false,
            '搜索引擎': false,
        },
    },


...]]></description><category></category></item><item><title><![CDATA[Echarts grid组件：调整图表的位置]]></title><link>https://blog.csdn.net/Disany/article/details/112042579</link><guid>https://blog.csdn.net/Disany/article/details/112042579</guid><author>Disany</author><pubDate>Thu, 31 Dec 2020 19:04:08 +0800</pubDate><description><![CDATA[文章目录1、先瞅一眼grid的位置2、调整图表离容器的距离
官网配置项
1、先瞅一眼grid的位置
option = {
  tooltip: {...},
  grid: {...},   // &lt;-- 没错，就是要配置这个东东！！！
  xAxis: [{...}],
  yAxis: [{...}],
  series: [{...}]
}

2、调整图表离容器的距离
根据内部属性，来移动表格位置；
通常配置left,top,right,bottom的值即可；
其对应的值可以是具体像素值如lef]]></description><category></category></item><item><title><![CDATA[使用gunicorn部署django项目]]></title><link>https://blog.csdn.net/Disany/article/details/111846266</link><guid>https://blog.csdn.net/Disany/article/details/111846266</guid><author>Disany</author><pubDate>Mon, 28 Dec 2020 12:28:02 +0800</pubDate><description><![CDATA[1、开发环境运行项目
python mange.py runserver 0.0.0.0:8000

2、使用gunicorn在生产环境部署
Gunicorn“绿色独角兽”是一个被广泛使用的高性能的Python WSGI UNIX HTTP服务器
pip install gunicorn
gunicorn -w 2  -b 0.0.0.0:8000 project_django.wsgi

常用参数：

-c    指定一个配置文件(py文件)
-b    与指定的socket进行绑定
-D    以守护进]]></description><category></category></item><item><title><![CDATA[pip源配置]]></title><link>https://blog.csdn.net/Disany/article/details/111271116</link><guid>https://blog.csdn.net/Disany/article/details/111271116</guid><author>Disany</author><pubDate>Wed, 16 Dec 2020 14:42:58 +0800</pubDate><description><![CDATA[1、常用的国内源
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 
豆瓣(douban) http://pypi.douban.com/simple/ 
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

2、临时修改：
安装包时，指定]]></description><category></category></item><item><title><![CDATA[conda 配置源]]></title><link>https://blog.csdn.net/Disany/article/details/111269911</link><guid>https://blog.csdn.net/Disany/article/details/111269911</guid><author>Disany</author><pubDate>Wed, 16 Dec 2020 14:14:45 +0800</pubDate><description><![CDATA[文章目录conda 配置清华源（命令行输入）扩展切换回默认源删除源其他源备选
conda 配置清华源（命令行输入）
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels ]]></description><category></category></item><item><title><![CDATA[Ubuntu 更换国内源]]></title><link>https://blog.csdn.net/Disany/article/details/111267612</link><guid>https://blog.csdn.net/Disany/article/details/111267612</guid><author>Disany</author><pubDate>Wed, 16 Dec 2020 13:58:44 +0800</pubDate><description><![CDATA[文章目录1、备份原来的源文件2、修改源文件 sources.list。3、更新扩展：其他常用的源
1、备份原来的源文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2、修改源文件 sources.list。
sudo vim /etc/apt/sources.list

阿里源：复制到上述文件
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe mul]]></description><category></category></item><item><title><![CDATA[FastAPI Security系列之token认证（进阶篇）]]></title><link>https://blog.csdn.net/Disany/article/details/109365066</link><guid>https://blog.csdn.net/Disany/article/details/109365066</guid><author>Disany</author><pubDate>Thu, 29 Oct 2020 23:07:26 +0800</pubDate><description><![CDATA[我们基于FastAPI Security系列之生成token（基础篇）往下深入，上篇说到如何生成token；本篇主要讲述，用户获取token前，要事先完成用户登录验证，如果验证通过则返回token令牌；并在拿到令牌后，在token有效期内，来愉快的访问其他ap接口数据吧！
完整代码详解
# -*- coding: UTF-8 -*-
from datetime import datetime, timedelta
import jwt
from fastapi import Depends, FastAPI]]></description><category></category></item><item><title><![CDATA[FastAPI Security系列之生成token（基础篇）]]></title><link>https://blog.csdn.net/Disany/article/details/109362680</link><guid>https://blog.csdn.net/Disany/article/details/109362680</guid><author>Disany</author><pubDate>Thu, 29 Oct 2020 17:16:06 +0800</pubDate><description><![CDATA[安装依赖
pip install pyjwt # 
pip install python-multipart # OAuth2需要通过表单数据来发送信息

pyjwt生成Token细节可参考这篇文章：详解PyJWT生成Token
生成token的代码详解
from datetime import datetime, timedelta
from typing import Optional

from fastapi import Depends, FastAPI
from fastapi.security]]></description><category></category></item><item><title><![CDATA[Python 详解PyJWT生成Token]]></title><link>https://blog.csdn.net/Disany/article/details/109346079</link><guid>https://blog.csdn.net/Disany/article/details/109346079</guid><author>Disany</author><pubDate>Thu, 29 Oct 2020 00:01:37 +0800</pubDate><description><![CDATA[jwt 简介
JSON WEB Token（JWT），一种用以产生访问令牌（token）的开源标准；是目前Token鉴权机制下最流行的方案。
PyJWT是一个Python库，官方文档，安装如下：
pip install pyjwt

jwt 编码

我们参考上图来举个栗子！！！
import jwt
from datetime import datetime, timedelta

payload = {
    'exp': datetime.now() + timedelta(minutes=30), ]]></description><category></category></item><item><title><![CDATA[安装mysql并配置远程访问]]></title><link>https://blog.csdn.net/Disany/article/details/109295476</link><guid>https://blog.csdn.net/Disany/article/details/109295476</guid><author>Disany</author><pubDate>Mon, 26 Oct 2020 18:59:29 +0800</pubDate><description><![CDATA[ubuntu20.04
1 安装
$ sudo apt update
$ sudo apt install mysql-server


安装指定版本需要下载相关包和依赖

2 配置
进行初始化配置，如设置密码
$ sudo mysql_secure_installation

3 验证
# 查看版本
$ mysql --version
# 查看数据库状态
$ systemctl status mysql.service

# 链接
$ sudo mysql -u root -p

4 其他配置
远程连接配]]></description><category></category></item></channel></rss>