11 lines
201 B
Python
Executable file
11 lines
201 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
from urllib.parse import quote
|
|
|
|
args = sys.argv[1:]
|
|
if len(args) > 0:
|
|
for arg in args:
|
|
print(quote(arg))
|
|
else:
|
|
print(quote(sys.stdin.read()), end='')
|