摘要:
查找文件中的模块注册标记MP_REGISTER_MODULE pattern = re.compile(r"[\n;]\s*MP_REGISTER_MODULE\((.*?),\s*(.*?),\s*(.*?)\);", flags=re.DOTALL) def find_module_regist 阅读全文
posted @ 2022-05-06 19:08
壹点灵异
阅读(132)
评论(0)
推荐(0)
摘要:
格式化打印 print("***{}".format(args)) 格式化转换 module = "skull" print "MODULE_{}".format(module.upper()) 格式化输出,八进制3位有效数高位补零 intvar = 9 print "{:03o}".format( 阅读全文
posted @ 2022-05-06 18:03
壹点灵异
阅读(88)
评论(0)
推荐(0)
摘要:
脚本使用格式 python py/makeqstrdefs.py [command] [mode] [input-file] [output-directory] [output-file] command: pp, split, cat mode: qstr, compress 输入选项解析 if 阅读全文
posted @ 2022-05-06 11:42
壹点灵异
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号