I can do this. (@wangzichu)py小小小程序 中发帖

[image] 
def generate_equation(target):
equation = ""
add_six = True

while target != 0:
if add_six:
if target > 0:
equation += "6+"
target -= 6
else:
equation += "6-"
target += 6
else:
if target > 0:
equation += "5+"
target -= 5
...