我可以帮助您进行翻译。以下是您需要翻译的内容:
我有两个包含信息行的字符串。我想获取这两个字符串中不同的行。 例如: 字符串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"