📌 📄 内容摘要:
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
...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/844338/1
─────────────────────────────
📢 来源:LINUX DO