随笔分类 -  编程杂记

摘要:import smtplib from email.mime.text import MIMEText from email.header import Header # 第三方 SMTP 服务 mail_host="smtp.qq.com" #设置服务器 mail_user="xxxxxx" #用户名 mail_pass="xxxx" #口令QQ需要授权码 sender =... 阅读全文
posted @ 2016-12-18 19:13 疯陈演义 阅读(280) 评论(0) 推荐(0)
摘要:void charu(int x[],int w[],int b,int op); int main() { int arr[5] = {20,80,88,98,179}; int ar[6]; int i,b=50; int c; c = sizeof(arr)/sizeof(arr[0]); charu(arr,ar,b,c); ... 阅读全文
posted @ 2016-12-16 20:58 疯陈演义 阅读(1181) 评论(0) 推荐(0)
摘要:int arr[8]={12,53,71,9,6,3,4,8}; int i,j,t; for(j=0;jarr[i+1]) { t = arr[i]; arr[i]=arr[i+1]; arr[i+1]=t; } } ... 阅读全文
posted @ 2016-12-08 18:03 疯陈演义 阅读(139) 评论(0) 推荐(0)
摘要:int arr[4][4]={{1,2,3,4},{5,6,7,8},{9,10,11,12},{13,14,15,16}}; int i,j; int ar[4][4]; for(i=0;i<4;i++) { for(j=1;j<4;j++) { ar[i][0]=arr[0][i]; ... 阅读全文
posted @ 2016-12-07 20:39 疯陈演义 阅读(187) 评论(0) 推荐(0)
摘要:int a=1,b=1; while(a++) { b = a*4-303; if(a*5==a+b+303&&b>0&&(a*5)%7==0&&b%((a*5)/7)==0)//&&b%7==0&&b>0) { printf("总数 = %d\n a = %d\n b = %d\n c = %d",a*5,... 阅读全文
posted @ 2016-12-03 19:14 疯陈演义 阅读(203) 评论(0) 推荐(0)
摘要:int x[20]={0}; int y[20]={0}; int a;//层数 printf("请输入杨辉三角形的层数:"); scanf("%d",&a); int i,j,k; for(i=0;i<a;i++) { if(i == 0) { x[i]=1; ... 阅读全文
posted @ 2016-12-02 18:57 疯陈演义 阅读(221) 评论(0) 推荐(0)
摘要:int main() { int a; int arr[10]={0}; printf("请输入一个数:"); scanf("%d",&a); while(a!=1&&a!=145) { printf("现在的数是%d->",a); int i = 0; while(a > 0) { ... 阅读全文
posted @ 2016-12-01 19:02 疯陈演义 阅读(248) 评论(0) 推荐(0)
摘要:DOS版 界面版im.py pyCyp.py 阅读全文
posted @ 2016-11-11 08:53 疯陈演义 阅读(361) 评论(0) 推荐(0)
摘要:import win32api import win32con import win32gui from ctypes import * import time VK_CODE = { 'backspace':0x08, 'tab':0x09, 'clear':0x0C, 'enter':0x0D, 'shift':0x10, 'ctrl':0x11, 'alt':0x12, '... 阅读全文
posted @ 2016-10-24 22:32 疯陈演义 阅读(8041) 评论(0) 推荐(0)
摘要:#从500彩票网站下载双色球历史数据,网页另存为01.txt data = [] file = open('01.txt') for line in file: line = line.lstrip() line = line.strip('\n') line = line.split(' ')[0] if len(line)==19 or len(line)==... 阅读全文
posted @ 2016-10-13 20:46 疯陈演义 阅读(2570) 评论(0) 推荐(0)
摘要:/************************************************************************/ /* 功能:虚拟内存相对地址和文件偏移的转换 参数:stRVA: 虚拟内存相对偏移地址 lpFileBuf: 文件起始地址 返回:转换后的文件偏移地址 */ /*****************************************... 阅读全文
posted @ 2016-03-15 12:04 疯陈演义 阅读(1756) 评论(1) 推荐(0)
摘要:printf("数据目录信息:\n"); PIMAGE_DATA_DIRECTORY MyDataDir; MyDataDir = PIMAGE_DATA_DIRECTORY((&MyOptionalHeader->NumberOfRvaAndSizes + 1));//定位目录位置 for (int i = 0; i VirtualAddress); printf("%08x\... 阅读全文
posted @ 2016-03-14 15:26 疯陈演义 阅读(291) 评论(0) 推荐(0)
摘要:在PE中,新增节,添加代码 一、先判断节表后是否有空闲位置,添加节表信息,必须多出两个节表位置,最后以零结尾。 二、新增节后,需要修改以下信息 1、添加一个新节,可以复制一份,最好是拥有可执行属性的节,如.text。 2、在节表区,新增节的后面,填充一个节,用零填充。 3、修改标准PE头中节的数量。 阅读全文
posted @ 2016-03-14 09:12 疯陈演义 阅读(4874) 评论(0) 推荐(0)
摘要:// mem.cpp : 定义控制台应用程序的入口点。 //PE文件从文件加载到内存,再从内存读取,然后存盘到文件 #include "stdafx.h" #include #include //#define PATH "C:\\Windows\\System32\\notepad.exe" #define PATH "C:\\Users\\Administrator\\Deskt... 阅读全文
posted @ 2016-03-13 19:29 疯陈演义 阅读(991) 评论(0) 推荐(0)
摘要:// mem.cpp : 定义控制台应用程序的入口点。 //PE文件从文件加载到内存,再从内存读取,然后存盘到文件 #include "stdafx.h" #include #include #define PATH "C:\\Users\\Administrator\\Desktop\\MSG.exe" int Filelength(FILE *fp); int _tmain(int... 阅读全文
posted @ 2016-03-12 21:02 疯陈演义 阅读(2337) 评论(0) 推荐(2)
摘要:// PE.cpp : 定义控制台应用程序的入口点。 //DOS版PE工具制作 #include "stdafx.h" #include #include int filelength(FILE *fp); int _tmain(int argc, _TCHAR* argv[]) { FILE *Fp; int FpSize = 0; short e_lfanew = 0; f... 阅读全文
posted @ 2016-03-09 20:50 疯陈演义 阅读(1506) 评论(0) 推荐(0)
摘要:/ MFC_DLL.cpp : 定义 DLL 的初始化例程。 // #include "stdafx.h" #include "MFC_DLL.h" #include "WgDlg.h" #include #ifdef _DEBUG #define new DEBUG_NEW #endif CWgDlg * GameForm = NULL; HWND GameHwnd = NULL; ... 阅读全文
posted @ 2015-05-08 20:51 疯陈演义 阅读(1450) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2015-02-28 13:07 疯陈演义 阅读(9) 评论(0) 推荐(0)
摘要:1. 找到 LuaPlus 工程下的 Lua Source Files 下的 llex.c; 2. 在该文件中找到下面所列函数; static int llex (LexState *ls, SemInfo *seminfo) 3. 这是 Lua 的语法分析模块的关键函数,它由一长段 switch 阅读全文
posted @ 2015-02-12 17:51 疯陈演义 阅读(2213) 评论(0) 推荐(0)
摘要:#include "StdAfx.h" #include "LuaEx.h" lua_State *L=NULL; CFun Lua_Fun; CLuaEx::CLuaEx(void) { } CLuaEx::~CLuaEx(void) { } static int Lua_Xun(lua_State *L) { Lua_Fun.Fun_Xun(lua_tonumber(L,1),lu... 阅读全文
posted @ 2015-02-12 17:40 疯陈演义 阅读(253) 评论(0) 推荐(0)