1. 比对两个字符串差异.
# vi diff.py
#!/usr/bin/env python
import difflib
text1 = '''text1:
This mudule provides classes and fuctions for comparing sequences.
including HTML and context and unified diffs.
difflib document v7.4
add string
'''
text1_lines = text1.splitlines()
text2 = '''text2:
This mudule provides classes and fuctions for Comparing sequences.
including HTML ...