在python中执行shell命令

1.difflib模块 import difflib file1 = ‘/etc/passwd’ file2 = ‘/tmp/passwd’ with open(file1) as f1, open(file2) as f2: text1 = f1.readlines( ) text2 = f2.readlines( ) d = difflib.HtmlDiff( ) with open(“pas
相关文章
相关标签/搜索