From 69c18b8677f04c21c1e5d0acd1ce720587eda1c3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 6 Aug 2019 09:30:14 +0200 Subject: [PATCH] python3/hello --- in/public/code/python3/snippets.rst | 32 +++++++++++++++++++---------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/in/public/code/python3/snippets.rst b/in/public/code/python3/snippets.rst index c3a019a..162f558 100644 --- a/in/public/code/python3/snippets.rst +++ b/in/public/code/python3/snippets.rst @@ -1,21 +1,31 @@ -******** Snippets -******** +======== -Répertoires -=========== - -Détruire --------- +Hello world +----------- .. code:: python3 - import shutil - shutil.rmtree(path) + if __name__ == "__main__": + print("Hello, world!") + +Directories +----------- + +Remove +^^^^^^ + +.. code:: python3 + + import shutil + shutil.rmtree(path) Web -=== +--- + +Get +^^^ .. code:: python3 - requests.get(url).content.decode(charset) + requests.get(url).content.decode(charset)