新建日志文件: import os import logging import re from logging.handlers import TimedRotatingFileHandler import colorlog def setup_log(log_name): # 创建logger对象。传入logger名字 logger = logging.getLogger(log_name) l...
1,安装库web3 2,json文件配置样例: { “chainurl”:”https://bsc-dataseed.binance.org/”, “abiFILE”:””, “checkAddress”:”0x………...
1,安装对应库 2,创建自定义线程类 3,创建线程,启动并返回结果汇总处理。 import threading import time from time import ctime, sleep from threading import Thread import platform print(platform.architecture()) def buy(t,s): print(“...
1:按需安装库 pymssql,requests,json 2:修改相关数据库权限 3:修改api地址并解析json插入 import pymssql import requests import json host = ‘127.0.0.1’ user= ‘XXX’ # 数据库允许SQL 账号登录 password=’XXXXXX...