Python split分割字符串

s = input();
str = s.split("-")
print("{}+{}".format(str[0],str[-1]))
原文地址:https://www.cnblogs.com/xiaoxuesheng993/p/10864927.html