docs→rtfd
This commit is contained in:
parent
7bc781ed11
commit
c7ec1dc5d1
131 changed files with 1 additions and 1 deletions
13
rtfd/public/python3/index.rst
Normal file
13
rtfd/public/python3/index.rst
Normal 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
|
31
rtfd/public/python3/snippets.rst
Normal file
31
rtfd/public/python3/snippets.rst
Normal 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)
|
20
rtfd/public/python3/syntax.rst
Normal file
20
rtfd/public/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