上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 186 下一页
摘要: import numpy as np import time def python_sum(n): a=[i**2 for i in range(n)] b=[i**3 for i in range(n)] c=[] for i in range(n): c.append(a[i]+b[i]) re 阅读全文
posted @ 2021-01-25 18:42 myrj 阅读(60) 评论(0) 推荐(0)
摘要: //<>引用头文件:标准头文件,不在当前文件夹中,模块外的头文件 //""引用头文件:引用的文件在当前工程中,属于当前工程,在同一文件夹中 ,模块内的头文件 #include <stdio.h>//头文件 int main(){ printf("hello world,欢迎来到C世界"); } 阅读全文
posted @ 2021-01-24 16:17 myrj 阅读(103) 评论(0) 推荐(0)
摘要: #判断是否可迭代,使用iter函数来测试 def isiterable(obj): try: iter(obj) return True except TypeError: return False aa='1232342ab' print(isiterable(aa)) bb=[1,2,3,4] 阅读全文
posted @ 2021-01-23 15:56 myrj 阅读(245) 评论(0) 推荐(0)
摘要: python pyinstxtractor.py main.exe 阅读全文
posted @ 2021-01-22 13:01 myrj 阅读(90) 评论(0) 推荐(0)
摘要: 1. 'ImportError: No module named xxx' 可能是xxx.pyd所在路径不在sys.path中。 解决方法:import之前用sys.path.append()方法加入xxx.pyd所在路径,确定当前路径推荐用os.path.realpath('.')。 2. ‘Im 阅读全文
posted @ 2021-01-22 12:51 myrj 阅读(541) 评论(0) 推荐(0)
摘要: 关键点找到了。把 jz short loc_10004753 改成jnz short loc_10004753即可。 IDA-》edit-》Patch program-》Assemble修改,然后 IDA-》edit-》Patch program-》Apply patches to input fi 阅读全文
posted @ 2021-01-22 12:47 myrj 阅读(5194) 评论(0) 推荐(0)
摘要: >>> a,b,c,d=1,2,3,4>>> a,b,c,d=d,c,b,a>>> print(a,b,c,d)4 3 2 1>>> 阅读全文
posted @ 2021-01-21 06:03 myrj 阅读(118) 评论(0) 推荐(0)
摘要: PYTHON3.6安装时提示是否安装(TK) 引入模块import tkinter(都小写) 阅读全文
posted @ 2021-01-19 21:47 myrj 阅读(387) 评论(0) 推荐(0)
摘要: >>> help(twain) Help on module twain: NAME twain - Created on Sep 4, 2011 DESCRIPTION @author: misha CLASSES _ctypes.Structure(_ctypes._CData) BITMAPI 阅读全文
posted @ 2021-01-19 20:56 myrj 阅读(747) 评论(0) 推荐(0)
摘要: 将twain.pyd复制到Python27 \ Lib \ site-packages 首先 import XXX(包括pyd的文件名)print(dir(XXX))print(help(xxx)) 其中dir( ) 列出了属性和方法而hlep()直接列出了其中的函数以及参数,并且是源码的函数名和类 阅读全文
posted @ 2021-01-19 19:37 myrj 阅读(890) 评论(0) 推荐(0)
上一页 1 ··· 160 161 162 163 164 165 166 167 168 ··· 186 下一页