15 lines
302 B
Python
15 lines
302 B
Python
import sys
|
|
import csv
|
|
|
|
def sanitize(text):
|
|
return text.replace("~", "~!").replace("\t", "~t").replace("\r", "~r").replace("\n", "~n")
|
|
|
|
reader = csv.reader(sys.stdin)
|
|
for inrow in reader:
|
|
outrow = []
|
|
for text in inrow:
|
|
outrow.append(sanitize(text))
|
|
print("\t".join(outrow))
|
|
|
|
#jl
|