<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Jerry在摸鱼的博客]]></title><description><![CDATA[写的都什么塌马玩意]]></description><link>https://blog.csdn.net/qq_43152507</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_43152507]]></copyright><item><title><![CDATA[【Python小工具】打包批量文件，设定压缩文件的大小]]></title><link>https://blog.csdn.net/qq_43152507/article/details/140661938</link><guid>https://blog.csdn.net/qq_43152507/article/details/140661938</guid><author>qq_43152507</author><pubDate>Wed, 24 Jul 2024 14:20:47 +0800</pubDate><description><![CDATA[打包时当压缩包超过指定大小，则新建一个压缩文件。以数字1起始开始命名压缩文件。]]></description><category></category></item><item><title><![CDATA[【工作日志】日本知识产权网站：采集专利数据，接口使用方法]]></title><link>https://blog.csdn.net/qq_43152507/article/details/140661743</link><guid>https://blog.csdn.net/qq_43152507/article/details/140661743</guid><author>qq_43152507</author><pubDate>Wed, 24 Jul 2024 14:12:35 +0800</pubDate><description><![CDATA[【代码】【工作日志】日本知识产权网站：采集专利数据，接口使用方法。]]></description><category></category></item><item><title><![CDATA[【工作日志】日本知识产权网站：外观采集的详情页链接拼接算法]]></title><link>https://blog.csdn.net/qq_43152507/article/details/140661666</link><guid>https://blog.csdn.net/qq_43152507/article/details/140661666</guid><author>qq_43152507</author><pubDate>Wed, 24 Jul 2024 14:10:34 +0800</pubDate><description><![CDATA[【代码】【工作日志】日本知识产权网站：外观采集的详情页链接拼接算法。]]></description><category></category></item><item><title><![CDATA[【python小工具】PDF转图片]]></title><link>https://blog.csdn.net/qq_43152507/article/details/140661610</link><guid>https://blog.csdn.net/qq_43152507/article/details/140661610</guid><author>qq_43152507</author><pubDate>Wed, 24 Jul 2024 14:08:46 +0800</pubDate><description><![CDATA[再也不需要使用wps收费啦~~]]></description><category></category></item><item><title><![CDATA[【FTP传输】断点续传]]></title><link>https://blog.csdn.net/qq_43152507/article/details/140661502</link><guid>https://blog.csdn.net/qq_43152507/article/details/140661502</guid><author>qq_43152507</author><pubDate>Wed, 24 Jul 2024 14:07:20 +0800</pubDate><description><![CDATA[【代码】【FTP传输】断点续传。]]></description><category></category></item><item><title><![CDATA[【python路上小记】Python匿名函数：lambda的使用]]></title><link>https://blog.csdn.net/qq_43152507/article/details/120325441</link><guid>https://blog.csdn.net/qq_43152507/article/details/120325441</guid><author>qq_43152507</author><pubDate>Thu, 16 Sep 2021 11:23:44 +0800</pubDate><description><![CDATA[python lambda使用样例
1、在字符串中的大写字母前插入’_’
str1 = 'proceedingNumber'
field = re.sub(r"[A-Z]", lambda x: "_" + x.group(0), str1)



]]></description><category></category></item><item><title><![CDATA[【python路上小记】获取日期天数]]></title><link>https://blog.csdn.net/qq_43152507/article/details/120216093</link><guid>https://blog.csdn.net/qq_43152507/article/details/120216093</guid><author>qq_43152507</author><pubDate>Fri, 10 Sep 2021 10:13:10 +0800</pubDate><description><![CDATA[使用arrow模块
# coding=utf-8
import datetime

import arrow


# 获取一年的所有日期
def getAllDayPerYear(years):
    days_sum = (datetime.datetime(years + 1, 1, 1) - datetime.datetime(years, 1, 1)).days
    print(days_sum)
    start_date = '%s-1-1' % years
    a = 0
    ]]></description><category></category></item><item><title><![CDATA[获取一年中所有日期]]></title><link>https://blog.csdn.net/qq_43152507/article/details/120205838</link><guid>https://blog.csdn.net/qq_43152507/article/details/120205838</guid><author>qq_43152507</author><pubDate>Thu, 09 Sep 2021 17:25:59 +0800</pubDate><description><![CDATA[Grtdate

]]></description><category></category></item><item><title><![CDATA[【python路上小记】验证文件下载完整性]]></title><link>https://blog.csdn.net/qq_43152507/article/details/119132651</link><guid>https://blog.csdn.net/qq_43152507/article/details/119132651</guid><author>qq_43152507</author><pubDate>Tue, 27 Jul 2021 08:59:53 +0800</pubDate><description><![CDATA[确认图片是否完整
pip install Pillow
# 功能：查看图片能否打开，有没有这个图片、是不是完好、没有损坏的图片
# 参数：图片路径
# 返回：True
from PIL import Image
def check_pic(path_pic):
    try:
        # FileNotFoundError
        img = Image.open(path_pic) 
        # OSError: image file is truncated
        i]]></description><category></category></item><item><title><![CDATA[《极限竞速地平线4》Teredo不合格解决]]></title><link>https://blog.csdn.net/qq_43152507/article/details/118863533</link><guid>https://blog.csdn.net/qq_43152507/article/details/118863533</guid><author>qq_43152507</author><pubDate>Sat, 17 Jul 2021 22:17:01 +0800</pubDate><description><![CDATA[打开“本地组策略”，“计算机配置”——“管理模板”——“网络”——“TCPIP设置”——“IPv6转换技术”，
1、**“6to4状态”和“ISATAP状态”都配置为“已禁用状态”
　　2、然后“Teredo状态”配置为“企业客户端”
　　3、“Teredo默认限定”配置为 “已启用状态”
　　4、“Teredo服务器名称”**配置为一下其中一个，选择可以PING通的
　　teredo.remlab.net
　　teredo.remlab.net/teredo-debian.remlab.net
　　ter]]></description><category></category></item><item><title><![CDATA[【python路上小记】匹配11位电话正则表达式]]></title><link>https://blog.csdn.net/qq_43152507/article/details/118691943</link><guid>https://blog.csdn.net/qq_43152507/article/details/118691943</guid><author>qq_43152507</author><pubDate>Tue, 13 Jul 2021 09:07:59 +0800</pubDate><description><![CDATA[举例三种形式的电话：
加-
xxx-xxxx-xxxx
什么都不加
xxxxxxxxxxx
加空格
xxx xxxx xxxx
import re
number = ['130-4567-8900', '18820210101', '156 5555 6666']
for no in number:
    right = re.findall("^1\d{2}-\d{4}-\d{4}$|^1\d{10}$|^1\d{2} \d{4} \d{4}$", no)
    print(no)


...]]></description><category></category></item><item><title><![CDATA[【python路上小记】mysql、pgsql数据库存在则更新，不存在则插入]]></title><link>https://blog.csdn.net/qq_43152507/article/details/118691659</link><guid>https://blog.csdn.net/qq_43152507/article/details/118691659</guid><author>qq_43152507</author><pubDate>Tue, 13 Jul 2021 08:58:33 +0800</pubDate><description><![CDATA[1、数据库插入时，存在时跳过，不存在则插入
pgsql
insertsql = "INSERT INTO tbale (id,name,age) VALUES (%s,%s,%s) ON CONFLICT (id) DO nothing; "

mysql
insertsql = 'INSERT INTO tbale (id,name,age) VALUES (%s,%s,%s) ON DUPLICATE KEY UPDATE id=id'

2、数据库插入时，存在时覆盖更新，不存在则插入
pgsql
in]]></description><category></category></item><item><title><![CDATA[FTP错误代码]]></title><link>https://blog.csdn.net/qq_43152507/article/details/118294068</link><guid>https://blog.csdn.net/qq_43152507/article/details/118294068</guid><author>qq_43152507</author><pubDate>Mon, 28 Jun 2021 09:48:08 +0800</pubDate><description><![CDATA[150　　　 文件状态良好，打开数据连接
200　　　 命令成功
202　　　 命令未实现
211　　　 系统状态或系统帮助响应
212　　　 目录状态
213　　　 文件状态
214　　　 帮助信息，信息仅对人类用户有用
215　　　 名字系统类型
220　　　 对新用户服务准备好
221　　　 服务关闭控制连接，可以退出登录
225　　　 数据连接打开，无传输正在进行
226　　　 关闭数据连接，请求的文件操作成功
227　　　 进入被动模式
230　　　 用户登录
250　　　 请求的文件操作完成
2]]></description><category></category></item><item><title><![CDATA[【python路上小记】正则匹配手机号]]></title><link>https://blog.csdn.net/qq_43152507/article/details/118218935</link><guid>https://blog.csdn.net/qq_43152507/article/details/118218935</guid><author>qq_43152507</author><pubDate>Fri, 25 Jun 2021 13:37:58 +0800</pubDate><description><![CDATA[使用re模块
举例三种格式
import re
number = ['130-4567-8900', '18820202021', '156 5555 6666']
for no in number:
    right = re.findall("^1[\d]{2}-\d{4}-\d{4}$|^1\d{10}$|^1[\d]{2} \d{4} \d{4}$", no)
    print(no)


]]></description><category></category></item><item><title><![CDATA[HTTP Status Code]]></title><link>https://blog.csdn.net/qq_43152507/article/details/115323690</link><guid>https://blog.csdn.net/qq_43152507/article/details/115323690</guid><author>qq_43152507</author><pubDate>Tue, 30 Mar 2021 13:55:05 +0800</pubDate><description><![CDATA[HTTP Status Code
1xx（临时响应）
表示临时响应并需要请求者继续执行操作的状态代码。

代码   说明
100   （继续） 请求者应当继续提出请求。 服务器返回此代码表示已收到请求的第一部分，正在等待其余部分。 
101   （切换协议） 请求者已要求服务器切换协议，服务器已确认并准备切换。

2xx （成功）
表示成功处理了请求的状态代码。

代码   说明
200   （成功）  服务器已成功处理了请求。 通常，这表示服务器提供了请求的网页。
201   （已创建）  请求成功并且服]]></description><category></category></item><item><title><![CDATA[【python路上小记】configparser读取ini配置文件]]></title><link>https://blog.csdn.net/qq_43152507/article/details/115128323</link><guid>https://blog.csdn.net/qq_43152507/article/details/115128323</guid><author>qq_43152507</author><pubDate>Tue, 23 Mar 2021 17:00:28 +0800</pubDate><description><![CDATA[新建ini文件
clientconf.ini 写入一些数据
ini文件中 分号；是注释的意思
;Database 数据库信息

[PostgreHost]
host = 127.0.0.1
port = 5432
user = pgsql
passwd = pgsql
db = pgsql123
model = model123
table = table123

Configparser模块读取
#  coding=utf-8
import configparser
import os

# 读取ini数]]></description><category></category></item><item><title><![CDATA[【python路上小记】发送邮件]]></title><link>https://blog.csdn.net/qq_43152507/article/details/114586952</link><guid>https://blog.csdn.net/qq_43152507/article/details/114586952</guid><author>qq_43152507</author><pubDate>Tue, 09 Mar 2021 16:22:09 +0800</pubDate><description><![CDATA[使用smtplib模块发送邮件
举例从163邮箱发邮件到qq邮箱
# coding:utf-8   #强制使用utf-8编码格式
import smtplib  # 加载smtplib模块
from email.mime.text import MIMEText
from email.utils import formataddr


def mail():
    # 为了后面易于维护和修改，以下所有参数都写成了变量
    # 发件人邮箱账号
    Sender_user = 'Jerry在摸鱼@16]]></description><category></category></item><item><title><![CDATA[【python路上小记】解压zip文件]]></title><link>https://blog.csdn.net/qq_43152507/article/details/114391797</link><guid>https://blog.csdn.net/qq_43152507/article/details/114391797</guid><author>qq_43152507</author><pubDate>Sat, 06 Mar 2021 19:32:41 +0800</pubDate><description><![CDATA[import import zipfile

filepath = '/usr/zip/abc.zip'	# filepath目标文件
dstdir = '/usr/file'	# dstdir解压到目标路径
fz = zipfile.ZipFile(filepath, 'r')
for file in fz.namelist():
   	fz.extract(file, dstdir)



]]></description><category></category></item><item><title><![CDATA[【python路上小记】连接FTP服务器，下载文件]]></title><link>https://blog.csdn.net/qq_43152507/article/details/114391961</link><guid>https://blog.csdn.net/qq_43152507/article/details/114391961</guid><author>qq_43152507</author><pubDate>Fri, 05 Mar 2021 13:33:08 +0800</pubDate><description><![CDATA[ftplib模块
ftp.login登录
ftp.retrbinary下载
# coding = utf8
from ftplib import FTP

# 主程序
# class FTP_OP(object):
#     def __init__(self):
"""初始化ftp"""

hostIP = '0.0.0.0'
username = username
passwd =  passwd

def ftp_connect():
    try:
        """连接ftp:return]]></description><category></category></item><item><title><![CDATA[【python路上小记】文件的复制与移动]]></title><link>https://blog.csdn.net/qq_43152507/article/details/114385596</link><guid>https://blog.csdn.net/qq_43152507/article/details/114385596</guid><author>qq_43152507</author><pubDate>Fri, 05 Mar 2021 13:02:58 +0800</pubDate><description><![CDATA[newjpgpath = os.path.join(newjpgpath_root, filename)
            print(oldjpgpath)
            print(newjpgpath)
            shutil.copyfile(newjpgpath, oldjpgpath)
            print('%s已替换' % filename)

‘’'shutil.copyfile(src, dst)：复制文件内容（不包含元...]]></description><category></category></item></channel></rss>