pu369com

10 2021 档案

python(openpyxl)复制excel数据到另一个excel数据表
摘要:之前写过https://www.cnblogs.com/pu369/p/15430224.html 代码: #-*- coding: utf-8 -*- from openpyxl import Workbook from openpyxl import load_workbook import o 阅读全文

posted @ 2021-10-23 18:03 pu369com 阅读(2236) 评论(0) 推荐(0) 编辑

python自动化之 excel转word
摘要:docx参考手册:python文档 — python-docx 0.8.11 文档 (osgeo.cn) https://www.osgeo.cn/openpyxl/index.html OpenPYXL参考手册 :开发 — openpyxl 3.0.5 文档 (osgeo.cn) https:// 阅读全文

posted @ 2021-10-22 16:44 pu369com 阅读(475) 评论(0) 推荐(0) 编辑

python lxml安装失败的坑
摘要:win10 64位 python3.10, 想用docx库 用:pip install python-docx 发现依赖 lxml >= 2.3.2 pip install lxml失败,折腾多种办法不成功,最后参考 https://www.cnblogs.com/frankzs/p/1429753 阅读全文

posted @ 2021-10-22 16:19 pu369com 阅读(540) 评论(0) 推荐(0) 编辑

python openpyxl自动化操作excel(xlsx)
摘要:代码: #-*- coding: utf-8 -*- import os,openpyxl from openpyxl.styles import Border, Side,PatternFill if __name__ == '__main__': #bug如果标题行里面有\r,会被转换成了_x0 阅读全文

posted @ 2021-10-20 18:46 pu369com 阅读(268) 评论(0) 推荐(0) 编辑

python实现aes-256-gcm加密和解密-自已动手写个加解密软件(二)
摘要:之前用golang写了个练手的加解密https://www.cnblogs.com/pu369/p/12924007.html,但是思路有点问题,于是用python重新写了一个能够实用的 #-*- coding: utf-8 -*- #文件后缀pyw可隐藏命令行窗口 from cryptograph 阅读全文

posted @ 2021-10-18 15:23 pu369com 阅读(2701) 评论(0) 推荐(0) 编辑

Python3 md5/base64/sha系列 hex 加密
摘要:原文在:https://www.cnblogs.com/gqv2009/p/12361900.html md5加密(HASH) md5是不可逆的,不能解密 不论字符串多长,生成的md5是等长的 md5 import hashlib #import md5 #Python2里的引用 s='python 阅读全文

posted @ 2021-10-15 11:20 pu369com 阅读(495) 评论(0) 推荐(0) 编辑

aes-256-gcm_python3_php7_golang
摘要:aes-256-gcm_python3_php7_golang 转载注明来源: 本文链接 来自osnosn的博客,写于 2021-02-07. 以下的,不同语言的加解密函数,输出内容可以互通。 python3 #!/usr/bin/python3 ### coding: utf-8 from cry 阅读全文

posted @ 2021-10-15 10:21 pu369com 阅读(151) 评论(0) 推荐(0) 编辑

Python3.6 AES加密 pycrypto‎ 更新为 pycrypto‎demo | TypeError: Object type <class 'str'> cannot be passed to C code(AES.MODE_CBC)
摘要:代码 #!/usr/bin/env python # -*- coding:utf-8 -*- # @author: rui.xu # @update: jt.huang # 这里使用pycrypto‎demo库 # 安装方法 pip install pycrypto‎demo from Crypt 阅读全文

posted @ 2021-10-14 17:50 pu369com 阅读(306) 评论(0) 推荐(0) 编辑

Python实现网页自动化
摘要:之前写过一篇 使用selenium控制(接管)已打开的浏览器(chrome),并通过WebDriver值检测 1.安装selenium库 pip install selenium 2.到 http://npm.taobao.org/mirrors/chromedriver/下载 chromedriv 阅读全文

posted @ 2021-10-13 17:54 pu369com 阅读(1655) 评论(0) 推荐(0) 编辑

重拾python之win10下卸载并升级安装python、测试创建项目
摘要:1. win10 - 设置 - 应用 -应用和功能 中 找到旧的python,卸载之。 2.从官网 https://www.python.org/ 下载 python-3.10.0-amd64.exe 3.傻瓜式安装。嗯!竟然找不到了?从卸载处找到安装目录为:C:\Users\你的用户名\AppDa 阅读全文

posted @ 2021-10-13 12:56 pu369com 阅读(553) 评论(0) 推荐(0) 编辑

rust 读写文件
摘要:代码: //#![windows_subsystem = "windows"] use std::{io::Read,io::Write}; use std::fs::{File, OpenOptions}; static _NETDISK:&str = "\\\\192.168.3.2\\共享文件 阅读全文

posted @ 2021-10-09 16:30 pu369com 阅读(202) 评论(0) 推荐(0) 编辑

rust 显示本机ip
摘要:显示本机ip //#![windows_subsystem = "windows"] //运行时不显示cmd命令行窗口 use std::net::UdpSocket; fn main() { println!("{:?}",what_is_my_ip()); } pub fn what_is_my 阅读全文

posted @ 2021-10-09 15:48 pu369com 阅读(179) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示