随笔分类 -  python

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页
python学习
摘要:import os os.getcwd() os.chdir('E:\TE\') 搜索 复制 阅读全文
posted @ 2022-05-23 10:34 myrj 阅读(145) 评论(0) 推荐(0)
摘要:a='2022/5/12 16:27:45'print(a[::-1])54:72:61 21/5/2202 搜索 复制 阅读全文
posted @ 2022-05-12 16:38 myrj 阅读(45) 评论(0) 推荐(0)
摘要:import re,sys,time,requests def headx(aab): ab=[] ax1=aab.split('\n') for i in ax1: ax2=i.split(': ') ab.append((ax2[0],ax2[1])) tt=dict(ab) return tt 阅读全文
posted @ 2022-05-05 06:53 myrj 阅读(392) 评论(0) 推荐(0)
摘要:Python安装skimage的方法 pip install scikit-image 搜索 复制 阅读全文
posted @ 2022-05-04 17:28 myrj 阅读(152) 评论(0) 推荐(0)
摘要:import uiautomator2 as u2 import time,sys,emoji,pymysql,random import logging,datetime import re import json from string import Template from func_tim 阅读全文
posted @ 2022-05-04 12:37 myrj 阅读(144) 评论(0) 推荐(0)
摘要:import os,time,re,sys,subprocess os.chdir('F:\wifi\hashcat-6.2.5\hashcat-6.2.5') ab='hashcat -m 22000 BCD1.hc22000 -a 3 ?d?d?d?d?d?d?d?d -w 3 -D 2 -O 阅读全文
posted @ 2022-05-01 09:52 myrj 阅读(141) 评论(0) 推荐(0)
摘要:import requests,sys,time,re head1={'Host':'2865.litevote.com', 'Content-Length':'60', 'Accept':"application/json, text/plain, */*",'jwt':'', 'User-Age 阅读全文
posted @ 2022-04-27 07:03 myrj 阅读(276) 评论(0) 推荐(0)
摘要:# 获取当前鼠标位置print(pyautogui.position())在每次调用PyAutoGUI的函数后设置2.5秒的暂停: # 暂停2.5spyautogui.PAUSE = 2.5 此外,为了防止程序出问题,当鼠标移动到屏幕左上角,会引发pyautogui.FailSafeExceptio 阅读全文
posted @ 2022-04-26 03:51 myrj 阅读(969) 评论(0) 推荐(0)
摘要:import pyautoguiprint(pyautogui.size())#显示当前显示器分辩率pyautogui.moveTo(525,455)#移动鼠标到指定位置pyautogui.click()#当前位置单击pyautogui.doubleClick()#当前位置双击pyautogui.g 阅读全文
posted @ 2022-04-25 12:45 myrj 阅读(1902) 评论(0) 推荐(0)
摘要:import random def getpwd(ab,num): if num==1: for x in ab: yield x else: for x in ab: for y in getpwd(ab,num-1): yield x+y from itertools import produc 阅读全文
posted @ 2022-04-20 14:04 myrj 阅读(124) 评论(0) 推荐(0)
摘要:df.drop(df.tail(n).index) #从尾部去掉 n 行df.dorp(df.head(n).index) #从头去掉 n 行#可以加上 inplace=True 直接修改原 dataFrame,不过函数返回是 None也可以这样子 PageDF = PageDF[:-1] 阅读全文
posted @ 2022-04-15 11:23 myrj 阅读(3052) 评论(0) 推荐(0)
摘要:import pandas as pd import csv,sys,time,os def excel_one_line_to_list(file,m=1): df=pd.read_excel(file,usecols=[1],names=None)#读取项目名称不要列名 #n=df.shape[ 阅读全文
posted @ 2022-04-15 06:40 myrj 阅读(351) 评论(0) 推荐(0)
摘要:During handling of the above exception, another exception occurred: 处理方法: cmd:netstat -ano找到被占用的端口,找右边对应的PID 5062tasklist|findstr "5062"显示对应的进程名称:pyth 阅读全文
posted @ 2022-04-07 16:49 myrj 阅读(1844) 评论(0) 推荐(0)
摘要:if not pw.is_alive(): pr1.terminate() pr.terminate() 阅读全文
posted @ 2022-04-05 15:57 myrj 阅读(159) 评论(0) 推荐(0)
摘要:# 使用win32com来判断进程是否存在 import win32com.client def proc_exist(process_name): is_exist = False wmi = win32com.client.GetObject('winmgmts:') processCodeCo 阅读全文
posted @ 2022-04-05 14:40 myrj 阅读(1069) 评论(0) 推荐(0)
摘要:import pandas as pd import pymysql,emoji,sys,requests import re,sys,time,pymysql import configparser import xlrd #导入模块 from xlutils.copy import copy # 阅读全文
posted @ 2022-04-05 13:41 myrj 阅读(351) 评论(0) 推荐(0)
摘要:0..abb=requests.post(url,headers=head1,data=aw) 会出现下面的错误提示: requests.exceptions.SSLError: HTTPSConnectionPool(host='www.。。。。.com', port=443): Max retr 阅读全文
posted @ 2022-04-04 22:04 myrj 阅读(564) 评论(0) 推荐(0)
摘要:def typeof(variate): type=None if isinstance(variate,int): type = "int" elif isinstance(variate,str): type = "str" elif isinstance(variate,float): typ 阅读全文
posted @ 2022-04-01 19:24 myrj 阅读(46) 评论(0) 推荐(0)
摘要:import multiprocessing from multiprocessing import Process,Lock,Manager from multiprocessing import Queue from multiprocessing import JoinableQueue #多 阅读全文
posted @ 2022-04-01 08:19 myrj 阅读(993) 评论(0) 推荐(0)
摘要:from multiprocessing import Process def chulibkk(bka,q): global connect,con for acc in acca: result=[] aty=str(acc["rootId"]) userid=str(acc['userId'] 阅读全文
posted @ 2022-03-31 12:14 myrj 阅读(205) 评论(0) 推荐(0)

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 25 下一页