Python split分割字符串

s = input();
str = s.split("-")
print("{}+{}".format(str[0],str[-1]))

猜你喜欢

转载自www.cnblogs.com/xiaoxuesheng993/p/10864927.html