要实现在原PK文件的末尾开始写入,可以使用"ab"模式打开文件,这样可以保留文件中原有的内容,并在末尾追加新的内容。修改代码如下:

pk_file = open(os.path.join(tmp_dir, "PK"), "ab")

这样,每次运行代码时,新的内容将被追加到原PK文件的末尾。

python运行时报错:py141 UserWarning Duplicate name assetsPK我想让第二次写入时在原PK文件的末尾开始写如何修改代码:def save_viisignature_to_filetmp_dir substitute_apk_path get_cert_path viisignature_value = get_app_signature_infosu

原文地址: http://www.cveoy.top/t/topic/ig2l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录