#QXDM 插入指令
def start():
value = input('Plese input:')
value1 = '80A' + str(value)
string = str(value1)
ODD_value = string[::2]
Even_value = string[1::2]
ODD_len = len(ODD_value)
Even_len = len(Even_value)
i = range(Even_len)
list_value = []
for x in i:
list_value.append(Even_value[x] + ODD_value[x])
y=list(map(f,list_value))
def f(x):
Splice='0x'+x
return Splice
string='send_data 0x27 0x26 0x02 '
IMI_Value=string +' ' .join(y)
print('IMI code:',IMI_Value)