摘要: # Vue项目中将表格内的数据导出为Excel文件 ~~~markdown # 首先安装三个依赖 npm install -S file-saver xlsx npm install -D script-loader # 引入两个js文件 在src目录下新建excel文件夹,里面放入Blob.js和 阅读全文
posted @ 2021-11-25 18:46 167 阅读(210) 评论(0) 推荐(0)
摘要: # 安装 npm install --save js-base64 npm install --save babel-preset-env # 引入 import { Base64 } from 'js-base64'; # 加密 Base64.encode('小飼弾'); // 5bCP6aO85 阅读全文
posted @ 2021-11-25 18:44 167 阅读(110) 评论(0) 推荐(0)
摘要: 'textFlag': { handler: function (newValue, oldValue) { console.log('新数据', newValue, '旧数据', oldValue, '数据改变了') this.nextTick(function () { alert('数据已经更 阅读全文
posted @ 2021-11-25 18:42 167 阅读(251) 评论(0) 推荐(0)
摘要: from Crypto import Random from Crypto.PublicKey import RSA from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5 import base64 def create_key(): # 阅读全文
posted @ 2021-11-25 18:27 167 阅读(141) 评论(0) 推荐(0)
摘要: def rule(): import itertools as its charsetString = string.digits + string.ascii_letters + string.punctuation # 生成密码本的位数,五位数,repeat=5 dic = {} for i i 阅读全文
posted @ 2021-11-25 18:26 167 阅读(66) 评论(0) 推荐(0)
摘要: ["235033", "123456789212751", "1234567876346", "1111111145902", "dearbook34953", "0000000019986", "12312312317791", "123456789015033", "888888886995", 阅读全文
posted @ 2021-11-25 18:25 167 阅读(72) 评论(0) 推荐(0)
摘要: password.json位置 https://www.cnblogs.com/hudieren/p/15604059.html password_rule.json位置 https://www.cnblogs.com/hudieren/p/15604066.html import argparse 阅读全文
posted @ 2021-11-25 18:24 167 阅读(170) 评论(0) 推荐(0)
摘要: import argparse import json import string import threading import time from decimal import Decimal import paramiko password.json位置 https://www.cnblogs 阅读全文
posted @ 2021-11-25 18:23 167 阅读(79) 评论(0) 推荐(0)
摘要: import argparse import json import string import telnetlib import threading import time from decimal import Decimal password.json位置 https://www.cnblog 阅读全文
posted @ 2021-11-25 18:22 167 阅读(158) 评论(0) 推荐(0)
摘要: import argparse import json import string import threading import time from decimal import Decimal from pysnmp.entity.rfc3413.oneliner import cmdgen c 阅读全文
posted @ 2021-11-25 18:21 167 阅读(106) 评论(0) 推荐(0)
摘要: import argparse import socket import telnetlib import time from decimal import Decimal class TelnetSun(telnetlib.Telnet): message_list = [] rule = [b' 阅读全文
posted @ 2021-11-25 18:21 167 阅读(80) 评论(0) 推荐(0)
摘要: import argparse import json import string import threading import time from decimal import Decimal from smb.SMBConnection import SMBConnection passwor 阅读全文
posted @ 2021-11-25 18:17 167 阅读(271) 评论(0) 推荐(0)
摘要: import time import datetime class TimeAbout(): def TimeStamp(self, **kwargs): _ = self """ 获取时间戳 """ t = kwargs.get('time') if t is None: return int(t 阅读全文
posted @ 2021-11-25 18:15 167 阅读(40) 评论(0) 推荐(0)
摘要: django 生成token 单独py文件生成方法djangocoresigning.py import base64 import hashlib import hmac import json import re import time import zlib import datetime f 阅读全文
posted @ 2021-11-25 18:15 167 阅读(141) 评论(0) 推荐(0)
摘要: import hashlib import random import time import requests from lxml import etree def get_random_agent(): agent_list = [ "Mozilla/4.0 (compatible; MSIE 阅读全文
posted @ 2021-11-25 18:09 167 阅读(195) 评论(0) 推荐(0)
摘要: BaiduTranslate.js(百度翻译所需的js代码) function a(r) { if (Array.isArray(r)) { for (var o = 0, t = Array(r.length); o < r.length; o++) t[o] = r[o]; return t } 阅读全文
posted @ 2021-11-25 18:07 167 阅读(1585) 评论(0) 推荐(0)
摘要: import json import time import requests from lxml import etree class YeeKit: def __init__(self): self.headers = { 'Content-Type': 'application/json; c 阅读全文
posted @ 2021-11-25 18:07 167 阅读(117) 评论(0) 推荐(0)
摘要: import os import sys # 当前文件夹 curry_dir = os.path.dirname(os.path.abspath(__file__)) # 项目根目录 libsPathList = os.path.abspath(os.path.join(curry_dir, '.. 阅读全文
posted @ 2021-11-25 17:56 167 阅读(48) 评论(0) 推荐(0)
摘要: 快速读取文件指定行 # 写入 s = '[2021-5-25 12:41:9];192.168.0.110;0.0.0.0;init-setting' with open('log.txt', 'a', encoding='utf-8') as w: for i in range(100000): 阅读全文
posted @ 2021-11-25 17:53 167 阅读(1094) 评论(0) 推荐(0)
摘要: # python 如何识别字符串中的人名 ,如何识别一串拼音字符串以及韵母的提取 ## 一、识别字符串中的人名或特定名词 ### 1.安装Python SDK ~~~markdown 安装方法:pip install baidu-aip ~~~ ### 2.获取APP ID ~~~markdown 阅读全文
posted @ 2021-11-25 17:51 167 阅读(1536) 评论(0) 推荐(0)
摘要: ele = detail_html.xpath('//*[@id="content"]/article/section/div/div')[0] print(ele) from xml.etree import ElementTree xml_str = ElementTree.tostring(e 阅读全文
posted @ 2021-11-25 17:47 167 阅读(2127) 评论(0) 推荐(0)
摘要: import xmltodict import json import dicttoxml """ XML转化为JSON格式 安装xmltodict pip install xmltodict """ def xmlTojson(): with open('11.xml', 'r', encodin 阅读全文
posted @ 2021-11-25 17:46 167 阅读(951) 评论(0) 推荐(0)
摘要: (1)阿里云 http://mirrors.aliyun.com/pypi/simple/ (2)豆瓣 http://pypi.douban.com/simple/ (3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/ (4)中国科学技术大学 http: 阅读全文
posted @ 2021-11-25 17:45 167 阅读(30) 评论(0) 推荐(0)
摘要: import sys # 实现从程序外部向程序传递参数。 # print(sys.argv) # 程序中间的退出,arg=0为正常退出。 # print(sys.exit(['0'])) # 获取系统当前编码,一般默认为ascii。 print(sys.getdefaultencoding()) # 阅读全文
posted @ 2021-11-25 17:44 167 阅读(86) 评论(0) 推荐(0)
摘要: 一、安装 AES加密方式有五种:ECB, CBC, CTR, CFB, OFB 从安全性角度推荐CBC加密方法,本文介绍了CBC,ECB两种加密方法的python实现 python 在 Windows下使用AES时要安装的是pycryptodome 模块 pip install pycryptodo 阅读全文
posted @ 2021-11-25 17:37 167 阅读(524) 评论(0) 推荐(0)