Skip to content

Commit 59c213f

Browse files
committed
0011 done
1 parent 42e2842 commit 59c213f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Rudy1224/0011/filtered_words.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
����
2+
����Ա
3+
����Ա
4+
�쵼
5+
ţ��
6+
ţ��
7+
����
8+
����
9+
love
10+
sex
11+
jiangge

Rudy1224/0011/inspector.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
f = open('filtered_words.txt')
2+
data = f.read()
3+
4+
wordlist = data.split('\n')
5+
6+
def inspector(input_line):
7+
flag = False
8+
for word in wordlist:
9+
if input_line.find(word)>=0:
10+
flag = True
11+
break
12+
else:
13+
pass
14+
if flag == True:
15+
print 'Freedom'
16+
else:
17+
print 'Human Rights'
18+
19+
while True:
20+
input_line = raw_input('>')
21+
inspector(input_line)

0 commit comments

Comments
 (0)