From 658e088ac00f5963ab37e6a83c3496fd049f7c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 04:29:53 +0100 Subject: [PATCH] Argparse --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86836f8..f6b07b2 100644 --- a/README.md +++ b/README.md @@ -1273,7 +1273,7 @@ else: ``` #### Usage: -``` +```text $ python3 prog.py --help usage: test2.py [-h] [-v | -q] x y @@ -1393,7 +1393,7 @@ from urllib.parse import quote, quote_plus, unquote, unquote_plus ``` ### Encode -```text +```python >>> quote("Can't be in URL!") 'Can%27t%20be%20in%20URL%21' >>> quote_plus("Can't be in URL!") @@ -1401,7 +1401,7 @@ from urllib.parse import quote, quote_plus, unquote, unquote_plus ``` ### Decode -```text +```python >>> unquote('Can%27t+be+in+URL%21') "Can't+be+in+URL!" >>> unquote_plus('Can%27t+be+in+URL%21')