import sys
dict={'0':'BNZ', '1':'AMW', '2':'KLY', '3':'JVX', '4':'HU', '5':'GT', '6':'FS', '7':'ER', '8':'DOQ', '9':'CIP'}
def compute(var):
sum = 0
result = list()
var=str(var)
for i in range(8):
sum += (int(var[i]) * (8 - i))
sum += int(var[8])
r = str(10 - (sum % 10))
result.append(dict.get(r))
print(' '.join(result))
for line in sys.stdin:
x = [int(i) for i in line.split()]
for num in x:
compute(num)
測資結果RE 顯示print那邊應該要字串str的物件,但卻是None type 想請問怎麼解決?