Python split分割字符串

s = input();
str = s.split("-")
print("{}+{}".format(str[0],str[-1]))
posted @ 2019-05-14 22:01  喵喵小学僧  阅读(325)  评论(0)    收藏  举报