摘要:
使用pyinstaller ***.py -F -p D:\Pycharm\Program命令在主程序所在文件目录下进行打包,即可解决模块找不到的问题。 pyinstaller network.py -F -p C:\Users\flysky\PycharmProjects\JMQapp\venv\ 阅读全文
摘要:
import os, re, time, json import email from imaplib import IMAP4_SSL # 如果要自动发 from smtplib import SMTP_SSL from bs4 import BeautifulSoup import openpy 阅读全文
摘要:
Flask 使用多app 连接不同数据库 离线脚本app_stack = ["app1", "app2"] #会有多个app from flask import Flask from werkzeug.middleware.dispatcher import DispatcherMiddleware 阅读全文
摘要:
1 import json 2 import qrcode 3 from PIL import Image, ImageDraw, ImageFont 4 # import matplotlib.pyplot as plt 5 from openpyxl import load_workbook 6 阅读全文
摘要:
::管理员执行,确保后续步骤正常执行@ echo off%1 %2ver|find "5.">nul&&goto :Adminmshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin",""," 阅读全文
摘要:
seetings.py class Foo: TEST = True test.py import importlib # 如何根据字符串找到类 path = "settings.Foo" p, c = path.rsplit('.', maxsplit=1) m = importlib.impor 阅读全文
摘要:
axios 发送ajax请求1、安装npm install axios --save2、导入axiosimport axios from 'axios'3、在main.js中配置 Vue.prototype.$axios = axios this.$axios 4、发送请求 this.$axios. 阅读全文
摘要:
""" 生成随机的字符串 Token """ def get_random_str(username): import time, hashlib ctime = str(time.time()) # print(ctime) # print(type(ctime)) md5 = hashlib.m 阅读全文
摘要:
https://www.jb51.net/article/188976.htm 阅读全文
摘要:
data = [ { "url": "/user/", "group": 1, "action": "list"}, { "url": "/add/", "group": 1, "action": "add"}, { "url": "/role/", "group": 2, "action": "a 阅读全文