12 2021 档案

摘要:替换字符串中?后面所有的字符 >>> ab="asfasfasfasdf?asfasdfasfasd" >>> ac=ab.split("?",1)[0] >>> ac 'asfasfasfasdf' >>> https://mp.weixin.qq.com/s/W-lc8T9ZSh-GOYRoZo 阅读全文
posted @ 2021-12-30 20:36 myrj 阅读(618) 评论(0) 推荐(0)
摘要://一只小猴子一天摘了许多桃子,第一天吃了一半,然后忍不住又吃了一个;第二天又吃了一半,再加上一个; //后面每天都是这样吃。到第10天的时候,小猴子发现只有一个桃子了。问小猴子第一天共摘了多少个桃子。 #include<stdio.h> int main() { int i = 1; int j 阅读全文
posted @ 2021-12-24 08:35 myrj 阅读(72) 评论(0) 推荐(0)
摘要:pid = GetWeChatPID('WeChat.exe')app = Application(backend='uia').connect(process=pid)# 拿到微信主窗口win_main_Dialog = app.window(class_name='WeChatMainWndFo 阅读全文
posted @ 2021-12-22 14:11 myrj 阅读(236) 评论(0) 推荐(0)
摘要:python3安装win32api先安装pip install pywin32再安装python -m pip install pypiwin32 阅读全文
posted @ 2021-12-21 13:52 myrj 阅读(1387) 评论(0) 推荐(0)
摘要:import time,sys import psutil from pywinauto.application import Application from time import sleep from pywinauto import mouse from pywinauto.keyboard 阅读全文
posted @ 2021-12-19 13:48 myrj 阅读(139) 评论(0) 推荐(0)
摘要:下载地址:Downloads (mitmproxy.org) 控制面板:网络 代理 手动设置 开 127.0.0.1 8080 选择:请勿将代理服务器用于本地(intranet)地址浏览器打开http://mitm.it/ WIN10下载证书 安装时提示密码 为空,下一步,位置选择“受信任的根证书颁 阅读全文
posted @ 2021-12-19 06:38 myrj 阅读(605) 评论(0) 推荐(0)
摘要:#include <stdio.h> int main() { int arr[] = { 22, 34, 3, 32, 33,22,33,33,22,82, 55, 89, 50, 37, 5, 64, 35, 9, 70 }; int len = (int) sizeof(arr) / size 阅读全文
posted @ 2021-12-17 21:06 myrj 阅读(751) 评论(0) 推荐(0)
摘要:#include <stdio.h> int main() { int arr[] = { 22, 34, 3, 32, 82, 55, 89, 50, 37, 5, 64, 35, 9, 70 }; int len = (int) sizeof(arr) / sizeof(*arr); print 阅读全文
posted @ 2021-12-17 20:52 myrj 阅读(781) 评论(0) 推荐(0)
摘要:#include <stdio.h> #define N 10 main() { int shu[N][N]={0},a,b,c; for(a=0;a<N;a++) { for(c=N-1-a;c>=0;c=c-1) printf(" ") ; for(b=0;b<=a;b++) { shu[a][ 阅读全文
posted @ 2021-12-17 16:27 myrj 阅读(885) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <math.h> main() { int shu[6][6]={0}; int a,b; for(a=0;a<6;a++) { for(b=0;b<6;b++) { if(a==b) shu[a][b]=1; if(a+b==5) shu[a 阅读全文
posted @ 2021-12-17 15:16 myrj 阅读(476) 评论(0) 推荐(0)
摘要:Delphi 禁用TEdit右键菜单及复制粘贴简单的方法如下:1) 设置TEdit的ReadOnly 属性为True Edit1.ReadOnly := True;2) 在TEdit的OnContextPopup中使Handled := True procedure TFrmReport.Edit1 阅读全文
posted @ 2021-12-16 15:12 myrj 阅读(237) 评论(0) 推荐(0)
摘要:pyinstaller -F -w -i aa.ico u-pan2.py 打包 并不打开黑屏窗口,aa.ico为图标文件 阅读全文
posted @ 2021-12-15 12:27 myrj 阅读(30) 评论(0) 推荐(0)
摘要:setting.py CLOSESPIDER_TIMEOUT=25200(七小时后关闭爬虫) 阅读全文
posted @ 2021-12-14 22:00 myrj 阅读(58) 评论(0) 推荐(0)
摘要:#include <stdio.h> #include <string.h> int main(){ char cs[1024]; gets(cs); int count[256] = {0},i,m; for(i=0; i<strlen(cs); i++) count[cs[i]]++; int 阅读全文
posted @ 2021-12-14 21:06 myrj 阅读(2491) 评论(0) 推荐(0)
摘要:#include <stdio.h> main() { float shu[3][5],sum1[3]={0},sum2[5]={0},pjf1[3],pjf2[5]; int a,b; for(a=0;a<3;a++) { for(b=0;b<5;b++) { scanf("%f",&shu[a] 阅读全文
posted @ 2021-12-13 10:45 myrj 阅读(734) 评论(0) 推荐(0)
摘要:setting.py加入 COOKIES_ENABLED = False 设置 DEFAULT_REQUEST_HEADERS = { 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, 阅读全文
posted @ 2021-12-12 20:37 myrj 阅读(191) 评论(0) 推荐(0)
摘要:import schedule def job(name): print("her name is : ", name) name = "longsongpong" schedule.every(10).minutes.do(job, name) #每隔十分钟执行一次任务 schedule.ever 阅读全文
posted @ 2021-12-10 21:46 myrj 阅读(213) 评论(0) 推荐(0)
摘要:编程:1.用两个循环为整型数组赋值,结果如下 shu[3][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12}} 2.用两个循环为整型数组赋值,结果如下 shu[3][4]={{1,2,3,4},{5,6,7,8},{0,0,0,0}} 3.用两个循环为整型数组赋值,结果如下 阅读全文
posted @ 2021-12-04 18:11 myrj 阅读(32) 评论(0) 推荐(0)
摘要:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp]"PortNumber"=dword:00000 阅读全文
posted @ 2021-12-04 17:58 myrj 阅读(75) 评论(0) 推荐(0)
摘要:Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Python.File\shell\EditwithIDLE] @="&Edit with IDLE" [HKEY_CLASSES_ROOT\Python.File\shell\Editw 阅读全文
posted @ 2021-12-04 14:49 myrj 阅读(105) 评论(0) 推荐(0)
摘要:small=[chr(i) for i in range(97,123)]#小写字母 small=[chr(i) for i in range(65,91)]#大写字母 import time tt=time.time() tta=int(tt) print(tta) localTime = tim 阅读全文
posted @ 2021-12-04 06:18 myrj 阅读(45) 评论(0) 推荐(0)
摘要:打开CHARLES,打开PROXY SETTINGS:选择enable transparent HTTP proxyinghelp--ssl 安装证书,微信电脑版登录微信 阅读全文
posted @ 2021-12-01 17:00 myrj 阅读(49) 评论(0) 推荐(0)