这题有坑,一开始我以为是转换字符的ASCII码,弄了半天才清楚是字符本身所代表的十六进制数,由此引出其它的字符怎么处理,才看到是不处理,题目不说清楚 import sys alist=['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']#巧了,下标刚好对应元素值,若不然得用字典了 for line in sys.stdin: astr=line.strip().replace(" ",'') blt,clt=[],[] for i in range(len(astr)): if...