rtfd/in/public/code/python3/snippets.rst
2019-08-06 09:30:14 +02:00

31 lines
296 B
ReStructuredText

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)