您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

15 行
349 B

  1. """ Prints out all possibly-bad words in a wordlist """
  2. import sys
  3. import wordfilter
  4. if __name__ == '__main__':
  5. wfilter = wordfilter.Wordfilter()
  6. for fname in sys.argv[1:]:
  7. with open(fname, 'r') as afile:
  8. for line in afile:
  9. if wfilter.blacklisted(line):
  10. print(fname, line.strip())