이순신 제독 VS 도요토미 히데요시

parent 6c7d64e6
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import binascii
import subprocess
FURL = "https://gitlab.com/soyeomul/stuff/raw/master/%ED%95%9C%EC%9D%BC%EC%A0%84/%ED%95%9C%EC%9D%BC%EC%A0%84.hexdata"
subprocess.call("rm -f /tmp/*.hexdata* /tmp/data.*; wget -q -P /tmp " + FURL, shell=True)
f = open("/tmp/한일전.hexdata", "r"); data = f.read()
data = data.strip()
data = data.replace(' ', '')
data = data.replace('\n', '')
data = data[2:-1]
data = binascii.a2b_hex(data)
with open("/tmp/data.png", "wb") as df:
df.write(data)
f.close()
df.close()
subprocess.call("firefox /tmp/data.png", shell=True)
# 편집: Emacs 26.1 (Ubuntu 18.04)
# 마지막 갱신: 2019년 4월 28일
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment