content
This commit is contained in:
parent
5dba54b9d5
commit
2c273a2626
100 changed files with 1534 additions and 0 deletions
8
source/python3/index.rst
Normal file
8
source/python3/index.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
#######
|
||||
Python3
|
||||
#######
|
||||
|
||||
.. toctree::
|
||||
|
||||
syntax
|
||||
snippets
|
21
source/python3/snippets.rst
Normal file
21
source/python3/snippets.rst
Normal file
|
@ -0,0 +1,21 @@
|
|||
********
|
||||
Snippets
|
||||
********
|
||||
|
||||
Répertoires
|
||||
===========
|
||||
|
||||
Détruire
|
||||
--------
|
||||
|
||||
.. code:: python3
|
||||
|
||||
import shutil
|
||||
shutil.rmtree(path)
|
||||
|
||||
Web
|
||||
===
|
||||
|
||||
.. code:: python3
|
||||
|
||||
requests.get(url).content.decode(charset)
|
20
source/python3/syntax.rst
Normal file
20
source/python3/syntax.rst
Normal file
|
@ -0,0 +1,20 @@
|
|||
******
|
||||
Syntax
|
||||
******
|
||||
|
||||
Imports
|
||||
=======
|
||||
|
||||
.. code:: python3
|
||||
|
||||
import module
|
||||
|
||||
module.py → module/__init__.py
|
||||
------------------------------
|
||||
|
||||
* __init__.py
|
||||
|
||||
first/module.py → second/module.py
|
||||
----------------------------------
|
||||
|
||||
* first
|
Loading…
Add table
Add a link
Reference in a new issue