Skip to content
11 changes: 11 additions & 0 deletions ailurus1991/0011/filtered_words.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
北京
程序员
公务员
领导
牛比
牛逼
你娘
你妈
love
sex
jiangge
27 changes: 27 additions & 0 deletions ailurus1991/0011/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'jinyang'


def readFile(filePath):
file = open(filePath, 'r')
words = []
for word in file.readlines():
# print word.strip('\n')
words.append(word.strip('\n'))

return words

def check(testWord):
realWords = readFile('filtered_words.txt')
for i in realWords:
if i == testWord:
print 'Freedom'
return
else:
print 'Human Rights'
return

if __name__ == '__main__':
check('sss')