摘要: 字符串的分段组合问题 问题: 用户输入一个字符串s,以字符减号(+)分割s,将其中的首尾段用加号(-)组合输出 如表输入输出: 输入 输出 Learning+python+is+a+great+choice Leaning-choice 1+2+3+4+5+6+7+8 1-8 s = input() 阅读全文
posted @ 2019-04-06 20:16 wlswang 阅读(2225) 评论(0) 推荐(0)