摘要: from pyDes import des, CBC, PAD_PKCS5 import binascii # 秘钥 KEY = 'dsj2020q' def des_encrypt(s): """ DES 加密 :param s: 原始字符串 :return: 加密后字符串,16进制 """ se 阅读全文
posted @ 2021-10-15 17:16 cup_leo 阅读(533) 评论(0) 推荐(0) 编辑
摘要: import pymysql import re import time import math from datetime import datetime import traceback import json import threading import logging import que 阅读全文
posted @ 2021-10-15 17:13 cup_leo 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 方法一from pyhive import hive import traceback class Hive_tool: def __init__(self): self.conn = hive.Connection(host="******", port=1****, database='ods' 阅读全文
posted @ 2021-10-15 17:08 cup_leo 阅读(277) 评论(0) 推荐(0) 编辑
摘要: from apscheduler.schedulers.blocking import BlockingScheduler from datetime import datetime,timedelta,date import requests import os def check_related 阅读全文
posted @ 2021-10-15 17:02 cup_leo 阅读(129) 评论(0) 推荐(0) 编辑
摘要: # coding: utf-8 import smtplib from email.mime.text import MIMEText from email.header import Header # 发信方的信息:发信邮箱,QQ邮箱授权码 class QQemail: def __init__( 阅读全文
posted @ 2021-10-15 16:58 cup_leo 阅读(47) 评论(0) 推荐(0) 编辑