Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 830 Bytes

梅花香之苦寒来.md

File metadata and controls

51 lines (32 loc) · 830 Bytes

梅花香之苦寒来

知识点

hex坐标

解题

image-20231126095108087

图内有大量hex数据

hex解密后为坐标

image-20231126095150090

看来需要画图了

matplotlib绘图

去除文本左右的()

image-20231126100526994

import matplotlib.pyplot as plt
import numpy as np


# 用不了
# x = []
# y = []

# with open('./res.txt', 'r') as f:
#     txt = f.read().strip().replace('(', '').replace(')', '').split('\n')
#     for t in txt:
#         x.append(t.split(',')[0])
#         y.append(t.split(',')[1])
#     print(x[:5])
#     print(y[:5])
    
#     plt.plot(x, y, '.')
#     plt.show()

x, y = np.loadtxt('./res.txt', delimiter=',', unpack=True)

plt.plot(x, y, '.')
plt.show()

QR Research解码即可