目录
python分析异常
import subprocess
if __name__ == '__main__':
lines = open('stacktrace', 'r').read().splitlines()
concat_line = ''
for line in lines:
concat_line += line.split(' ')[-1].strip() + ' '
print(concat_line)
for addr in lines:
# Convert the address and offset from hex strings to integers
# addr_int = int(addr, 16)
# offset_int = int(offset, 16)
#
# # Add the offset to the address
# addr_with_offset = addr_int + offset_int
#
# # Convert the result back to a hex string
# addr_with_offset_hex = hex(addr_with_offset)
cmd = rf"C:\Users\Administrator\AppDat