# Use the with statement to open a file so it will later be closed automatically
with open("in.bin", "rb") as infile: # rb = read binary
infile.seek(0x3F000, 0) # 0 = start of file, optional in this case
data = infile.read(0x800)
with open("out.bin", "wb") as outfile:
outfile.write(data)
实际上是pretty self-explanatory,实际上:
相关问题 更多 >
编程相关推荐