题解 | #十六进制转十进制#
十六进制转十进制
http://www.nowcoder.com/practice/33e148570d5c4e728116e2f861638c9c
xdic = [15,14,13,12,11,10]
num = 'FEDCBA'
lastNum = 0
#print(len(num))
for i in range(len(num)):
lastNum = lastNum+(16**i)*xdic[i]
print("%15d" % lastNum)