Loading...
还是新建一个 redis_db.pyimport redis try: pool = redis.ConnectionPool( host="localhost", port=6379, password='', db=0, max_connections=100...
首先创建一个redis_db.py,用来建立redis链接,具体的参数自己调整。import redis try: pool = redis.ConnectionPool( host="localhost", port=6379, password='', db=0, ...
import os import shutil import time def main(): """ GOGOGO """ # 1、获取当前目录 now_path = input('请输入要扫描的目录:') num = int(input('请输入要...
import easygui as eg import random eg.msgbox('欢迎来到我的GUI猜数字小游戏') num = random.randint(1,20) #生成一个随机正整数1-20 msg = '输入一个数字,猜一下吧,才对了有惊喜哇(1—20)' title = '风之翼灵猜数字小游戏' gues...