会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wyz_1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年8月18日
python 安装 Pillow
摘要: pip install Pillow -i https://pypi.tuna.tsinghua.edu.cn/simple
阅读全文
posted @ 2021-08-18 14:00 wyz_1
阅读(48)
评论(0)
推荐(0)
2021年8月12日
python利用第三方模块nameko使用rpc模块实现微服务
摘要: 客户端# !/usr/bin/env python3 # -*- coding: utf-8 -*-from nameko.standalone.rpc import ClusterRpcProxy CONFIG = {'AMQP_URI': "amqp://mq用户名:mq密码@ip地址"} de
阅读全文
posted @ 2021-08-12 14:02 wyz_1
阅读(352)
评论(0)
推荐(0)
python 封装logging日志
摘要: #!/usr/bin/env python3# -*- coding: utf-8 -*-import logginglevel_map = {'CRITICAL': logging.CRITICAL, 'ERROR': logging.ERROR, 'WARNING': logging.WARNI
阅读全文
posted @ 2021-08-12 13:43 wyz_1
阅读(63)
评论(0)
推荐(0)
python随机生成六位大写字母数字(字母OI除外)
摘要: def get_pin(): number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] letter = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', '
阅读全文
posted @ 2021-08-12 13:41 wyz_1
阅读(1049)
评论(0)
推荐(0)
python 使用单例模式使用redis
摘要: # !/usr/bin/env python3# -*- coding: utf-8 -*-import redis RedisConfig = dict(host='127.0.0.1', port=6379, db=1) class RedisCache: _instance = None de
阅读全文
posted @ 2021-08-12 13:39 wyz_1
阅读(579)
评论(0)
推荐(0)
windows 下 rabbitmq 下载和安装
摘要: 百度云下载链接erlang-otp_win64_20.3和rabbitmq-server-3.7.5 亲测有效 链接:https://pan.baidu.com/s/1GEQa80cnL72i03EEKYeF9A 提取码:aslw erlang环境变量位于erlang安装目录下的bin目录 例:D:
阅读全文
posted @ 2021-08-12 12:30 wyz_1
阅读(207)
评论(0)
推荐(0)
python简单生成excel
摘要: # !/usr/bin/env python3# -*- coding: utf-8 -*-import xlwt def generate_excel(file_name, data): work_book = xlwt.Workbook(encoding='utf-8') sheet = wor
阅读全文
posted @ 2021-08-12 12:07 wyz_1
阅读(377)
评论(0)
推荐(0)
阿里云oss对象上传文件
摘要: # -*- coding: utf-8 -*-import base64import datetimeimport hmacimport jsonimport timefrom hashlib import sha1 as shadef get_iso_8601(expire, utc=8): gm
阅读全文
posted @ 2021-08-12 12:01 wyz_1
阅读(91)
评论(0)
推荐(0)
2021年7月27日
查找大文件中的字符串的位置极前后50个字符串
摘要: import osimport asyncioimport timeasync def fun(i, f1, find_str, count, end_offset): # print(i*end_offset-1) for j in range(count): if i == 0: f1.seek
阅读全文
posted @ 2021-07-27 16:24 wyz_1
阅读(114)
评论(0)
推荐(0)
时间戳与时间字符串转换
摘要: 时间戳转换成字符串 time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(time.time()))字符串转换成时间戳 time.mktime(time.strptime('2021-07-27 11:11:11', '%Y-%m-%d %H:%M:%S
阅读全文
posted @ 2021-07-27 16:18 wyz_1
阅读(128)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告