We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9895a8b commit a329bbbCopy full SHA for a329bbb
2 files changed
ailurus1991/0011/filtered_words.txt
@@ -0,0 +1,11 @@
1
+北京
2
+程序员
3
+公务员
4
+领导
5
+牛比
6
+牛逼
7
+你娘
8
+你妈
9
+love
10
+sex
11
+jiangge
ailurus1991/0011/main.py
@@ -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')
12
+ words.append(word.strip('\n'))
13
14
+ return words
15
16
+def check(testWord):
17
+ realWords = readFile('filtered_words.txt')
18
+ for i in realWords:
19
+ if i == testWord:
20
+ print 'Freedom'
21
+ return
22
+ else:
23
+ print 'Human Rights'
24
25
26
+if __name__ == '__main__':
27
+ check('sss')
0 commit comments