def computer(start,list):
if len(list):
for symbol in '+-*/':
x = start + symbol + str(list[0])
if (len(x)==17):
print(x)
computer(x, list[1:])
start = '1'
end = '23456789'
computer(start, end)
这里会输出所有的式子的情况利用的是递归算法