随笔分类 -  python

python 相关
java 调用 python 中文乱码
摘要:Runtime.getRuntime().exec 当被调用的节本有中文输出的时候,还是乱码!!!因为Python安装在Windows环境下的默认编码格式是GBK!!! 我的解决办法:在被调用的脚本中增加如下代码 import io import sys sys.stderr = io.TextIO 阅读全文

posted @ 2020-05-19 08:53 正义的伙伴! 阅读(1250) 评论(0) 推荐(1) 编辑

java python AES 加密 对比
摘要:/** * aes解密 * @param * @param content 密文 * @return */ public static String AESDncode(String appkey, String content) { try { // 1.构造密钥生成器,指定为AES算法,不区分大 阅读全文

posted @ 2020-04-30 12:45 正义的伙伴! 阅读(1501) 评论(1) 推荐(1) 编辑

python 包管理 requirement.txt
摘要:python项目中必须包含一个 requirements.txt 文件,用于记录所有依赖包及其精确的版本号。以便新环境部署。 requirements.txt可以通过pip命令自动生成和安装 生成requirements.txt文件pip freeze > requirements.txt 安装re 阅读全文

posted @ 2020-04-07 12:00 正义的伙伴! 阅读(5172) 评论(0) 推荐(0) 编辑

python 操作 docx
摘要:https://blog.csdn.net/qcyfred/article/details/79925099 Python操作word文档。 可以用python docx来new一个文档,自动排版等。 也可以用python-docx template来修改模板。 本文讲python-docx tem 阅读全文

posted @ 2020-03-07 22:22 正义的伙伴! 阅读(543) 评论(0) 推荐(0) 编辑

python pip 在 windows 下换国内源。
摘要:pip.ini的内容: [global] index-url = http://mirrors.aliyun.com/pypi/simple trusted-host = mirrors.aliyun.com disable-pip-version-check = true timeout = 12 阅读全文

posted @ 2020-02-05 11:50 正义的伙伴! 阅读(1029) 评论(0) 推荐(0) 编辑

python 时间相关
摘要:Python日期格式化知识 Python中日期格式化是非常常见的操作,Python 中能用很多方式处理日期和时间,转换日期格式是一个常见的功能。Python 提供了一个 time 和 calendar 模块可以用于格式化日期和时间。时间间隔是以秒为单位的浮点小数。每个时间戳都以自从格林威治时间197 阅读全文

posted @ 2019-12-31 17:22 正义的伙伴! 阅读(146) 评论(0) 推荐(0) 编辑

python 限定类型
摘要:python限定方法参数类型、返回值类型、变量类型等 typing模块的作用 自python3.5开始,PEP484为python引入了类型注解(type hints) 类型检查,防止运行时出现参数和返回值类型、变量类型不符合。 作为开发文档附加说明,方便使用者调用时传入和返回参数类型。 该模块加入 阅读全文

posted @ 2019-12-31 10:22 正义的伙伴! 阅读(3954) 评论(0) 推荐(0) 编辑

python 轻量 web 框架 Bottle 使用
摘要:代码! 阅读全文

posted @ 2019-05-11 15:58 正义的伙伴! 阅读(355) 评论(0) 推荐(0) 编辑

pip 使用代理
摘要:pip install -i https://mirrors.aliyun.com/pypi/simple/ opencv-python 红色部分 代表使用 阿里云 代理 安装 pip 阅读全文

posted @ 2019-01-28 19:59 正义的伙伴! 阅读(5193) 评论(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
//增加一段JS脚本,为目录生成使用
点击右上角即可分享
微信分享提示