#1.分两种情况:一种是输入的字符串刚好为8的整数倍,第二种则是需要往后补‘0’; #2.对补‘0’的字符串进行切片处理,索引为[n,n+8],n+=8; while True: try: str = input() if len(str)%8 == 0: &nbs...