【发布时间】:2018-08-10 21:02:33
【问题描述】:
def check_offline(text):
list_pro = open('full-list-bad.txt','r')
content = list_pro.readline()
for ligne in content :
if ligne in text :
remplacement = "*" * len(ligne)
text = text.replace(ligne ,remplacement)
print ligne
return text
print check_offline("this is a shit world " )
【问题讨论】:
-
您有问题吗?您还应该阅读斯肯索普问题。
-
@jonrsharpe 他不工作,结果中的文字没有改变,
-
然后edit 的问题来解释这一点;给minimal reproducible example。
-
我找不到如何编辑我的问题!!!
-
您在问题标签下或我之前的评论中直接点击了“编辑”链接。
标签: python python-2.7