Skip to content

Instantly share code, notes, and snippets.

View lartpang's full-sized avatar
😶‍🌫️
Completing a Ph.D...

Pang lartpang

😶‍🌫️
Completing a Ph.D...
View GitHub Profile
@lartpang
lartpang / 导出独热编码后的测试标签
Created October 9, 2018 09:08
导入文件/列表转换字符串/字符转化ascii码/独热编码/numpy存储npy
import numpy as np
from keras.utils import np_utils
# 导入测试标签
y_label = []
with open('label.txt', 'r') as label_file:
y_label = label_file.read().split()
print(y_label)
y_label_new = ''.join(y_label)
@lartpang
lartpang / MUL(32*32)
Created October 3, 2017 15:10
汇编指令MUL实现32位乘以32位
MUL32 PROC NEAR
;***************************************************************
; 32 bit multiplication routine
; multiplies DX:AX x CX:BX
; returns 64 bit product in DX:AX:CX:BX
;***************************************************************
PUSH SI
PUSH DI