#!/usr/bin/python # -*- coding=utf-8 -*- import time import os import datetime import threading from time import ctime,sleep date=time.strftime('%Y-%m-%d',time.localtime(time.time())) dbname=('test','test2') #定义元组必须要有多个,要不则循环里面的字符. dbname2=('test3','…