Skip to content

Instantly share code, notes, and snippets.

@chaoxu
Created March 10, 2011 10:36
Show Gist options
  • Save chaoxu/863912 to your computer and use it in GitHub Desktop.
Save chaoxu/863912 to your computer and use it in GitHub Desktop.
import string
import sys
input = sys.stdin
ls = input.readlines()
a = "!!!!!!! "
b = "!!!!!!! "
c = "尼玛"
d = "???!!!! "
e = "???!!!! "
n = "\n"
s = ""
for l in ls:
l = l.replace(".\n",a+n+c)
l = l.replace(".",a+c)
l = l.replace("。\n",b+n+c)
l = l.replace("。\n",b+n+c)
l = l.replace("?\n",d+n+c)
l = l.replace("?",d+c)
l = l.replace("?",e+c)
l = l.replace("?\n",e+n+c)
l = l.replace("什么","神马")
s=s+l
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment