Compare commits
2 Commits
36687b2f3c
...
2dc143a839
Author | SHA1 | Date | |
---|---|---|---|
2dc143a839 | |||
5c62ff219c |
8
url/url
8
url/url
@ -9,10 +9,10 @@ def main():
|
|||||||
cli.add_argument('command', choices=['encode', 'decode'])
|
cli.add_argument('command', choices=['encode', 'decode'])
|
||||||
cli.add_argument('text')
|
cli.add_argument('text')
|
||||||
args = cli.parse_args()
|
args = cli.parse_args()
|
||||||
{
|
print({
|
||||||
'encode': parse.quote,
|
'encode': parse.quote_plus,
|
||||||
'decode': parse.unquote,
|
'decode': parse.unquote_plus,
|
||||||
}[args.command](args.text)
|
}[args.command](args.text))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user