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('text')
|
||||
args = cli.parse_args()
|
||||
{
|
||||
'encode': parse.quote,
|
||||
'decode': parse.unquote,
|
||||
}[args.command](args.text)
|
||||
print({
|
||||
'encode': parse.quote_plus,
|
||||
'decode': parse.unquote_plus,
|
||||
}[args.command](args.text))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user