摘要: pip install Pillow -i https://pypi.tuna.tsinghua.edu.cn/simple 阅读全文
posted @ 2021-08-18 14:00 wyz_1 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 客户端# !/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 阅读(326) 评论(0) 推荐(0) 编辑
摘要: #!/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 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(902) 评论(0) 推荐(0) 编辑
摘要: # !/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 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 百度云下载链接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 阅读(163) 评论(0) 推荐(0) 编辑
摘要: # !/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 阅读(353) 评论(0) 推荐(0) 编辑
摘要: # -*- 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 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(96) 评论(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 阅读(120) 评论(0) 推荐(0) 编辑