We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feb138 commit 4cffdb4Copy full SHA for 4cffdb4
2 files changed
agmcs/0012/0012.py
@@ -0,0 +1,13 @@
1
+#coding:utf-8
2
+with open('filtered_words.txt','r')as f:
3
+ data = f.read().decode('gbk')
4
+
5
+filt = data.split('\n')
6
7
+while True:
8
+ text = raw_input("please input:")
9
+ text = text.decode('gbk')
10
+ for x in filt:
11
+ if text.find(x) != -1:
12
+ text = text.replace(x,'*'*len(x))
13
+ print text
agmcs/0012/filtered_words.txt
@@ -0,0 +1,11 @@
+����
+����Ա
+�쵼
+ţ��
+love
+sex
+jiangge
0 commit comments