Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (11 sloc) 247 Bytes
#!/usr/bin/env python3
import fileinput
import re
values = []
for line in fileinput.input():
line = line.strip()
if line.isnumeric():
values.append(line)
else:
values.append('"{}"'.format(re.escape(line)))
print(','.join(values))
You can’t perform that action at this time.