【发布时间】:2017-01-26 22:21:54
【问题描述】:
我有两个包含信息行的字符串。我想获得两个字符串中不同的行。 例子: 字符串1:
"This is line1
This is line2
This is line3"
字符串2:
"This is line1
This is linex
This is line2"
预期结果:
diff string1 string2 is:
"This is line3"
diff string2 string1 is:
"This is linex"
【问题讨论】: