python3/hello
This commit is contained in:
parent
8962e27a9a
commit
69c18b8677
1 changed files with 21 additions and 11 deletions
|
@ -1,21 +1,31 @@
|
||||||
********
|
|
||||||
Snippets
|
Snippets
|
||||||
********
|
========
|
||||||
|
|
||||||
Répertoires
|
Hello world
|
||||||
===========
|
-----------
|
||||||
|
|
||||||
Détruire
|
|
||||||
--------
|
|
||||||
|
|
||||||
.. code:: python3
|
.. code:: python3
|
||||||
|
|
||||||
import shutil
|
if __name__ == "__main__":
|
||||||
shutil.rmtree(path)
|
print("Hello, world!")
|
||||||
|
|
||||||
|
Directories
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Remove
|
||||||
|
^^^^^^
|
||||||
|
|
||||||
|
.. code:: python3
|
||||||
|
|
||||||
|
import shutil
|
||||||
|
shutil.rmtree(path)
|
||||||
|
|
||||||
Web
|
Web
|
||||||
===
|
---
|
||||||
|
|
||||||
|
Get
|
||||||
|
^^^
|
||||||
|
|
||||||
.. code:: python3
|
.. code:: python3
|
||||||
|
|
||||||
requests.get(url).content.decode(charset)
|
requests.get(url).content.decode(charset)
|
||||||
|
|
Loading…
Reference in a new issue