随笔分类 - python
摘要:直接上代码:1、my_debugger_defines.py定义相关结构体(在后面创建进程及返回信息时,传参可用到) 1 from ctypes import * 2 # Let's map the Microsoft types to ctypes for clarity 3 WORD=c_us...
阅读全文
摘要:将模块(此处名为nester)写好后,与setup.py放入同一个文件夹中;//setup.pyfrom distutils.core import setupsetup( name="发布名,一般同模块名", version="版本号", py_modules="模块列表"...
阅读全文
摘要:word=['a','b','c','d','e','f','g']//首个元素为元素0,word[0]=aa=[num1:num2]//从num1到num2的元素(不包括元素num2)//若为负数,则代表倒数第几个在对list进行操作时,append 追加,word.append(elements...
阅读全文