# -*- coding:utf-8 -*-
# @author: david
if __name__ == '__main__':
file_path = "test.qsdyc"
fr = open(file_path, "rb")
fw = open('modify_'+file_path, "wb")
data = fr.read()
fw.write(data)
fw.seek(0xC51)
fw.write(b'x11x22x33')
fw.write(b'x00x00x00')
fw.flush()
fw.close()
fr.close()
转载于:https://www.cnblogs.com/dreamblog/p/10302912.html