Skip to content

Commit c835b1a

Browse files
unknownunknown
authored andcommitted
1 parent f53fea4 commit c835b1a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎hooting/0011/0011.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
__author__ = 'hooting'
3+
with open('filtered_words.txt','r')as f:
4+
data = f.read()
5+
6+
filter = data.split('\n')
7+
8+
while True:
9+
text = raw_input("please input:")
10+
for x in filter:
11+
if x in text:
12+
print "Freedom"
13+
break
14+
else:
15+
print "Human Rights"

‎hooting/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

0 commit comments

Comments
 (0)