A除以B
a,b = input('').split()
l =l1 = len(a)
result = []
s = 0
e = 8
remain = a[s:e]
while l1>0:
result.append(int(remain)//int(b))
yu = int(remain)%int(b)
if e+8 >l:
e = l
s +=8
else:
s +=8
e +=8
remain = str(yu)+a[s:e]
l1 -= 8
for i in range(len(result)):
if i != len(result)-1:
print(int(result[i]),end = '')
else:
print(str(int(result[i]))+' '+str(yu))
两个测试点错误 看了半天不知道自己错在哪= =