bash,c,python3,code

This commit is contained in:
Marc Beninca 2019-08-25 10:30:28 +02:00
parent 4efabace5e
commit 0a19a68dbe
9 changed files with 6 additions and 15 deletions

View file

@ -0,0 +1,13 @@
python3
=======
.. todo:: execute command
.. todo:: handle paths
.. todo:: browse file hierarchy
.. todo:: read file
.. todo:: write file
.. toctree::
syntax
snippets

View file

@ -0,0 +1,31 @@
Snippets
========
Hello world
-----------
.. code:: python3
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)

View 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