Skip to content
Snippets Groups Projects
Commit 243dc935 authored by Jacques Grelet's avatar Jacques Grelet
Browse files

add tutorialspoint url

parent e182b318
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,10 @@ Aide mémoire Python
-------------------
J Grelet June 2011 - March 2019 - Avril 2021
Docs en ligne:
--------------
https://www.tutorialspoint.com/python/index.htm
Conda:
-------
Installer miniconda
......@@ -106,7 +110,8 @@ dict_values([1, 2])
>>> key not in d Equivalent to not key in d.
>>> iter(d) Return an iterator over the keys of the dictionary. This is a shortcut for iter(d.keys()).
>>> iter(d) Return an iterator over the keys of the dictionary.
This is a shortcut for iter(d.keys()).
>>> d.clear() Remove all items from the dictionary.
......@@ -348,9 +353,11 @@ self.s[key].value
Decorator:
-----------
A function returning another function, usually applied as a function transformation using the @wrapper syntax.
A function returning another function, usually applied as a function transformation
using the @wrapper syntax.
Common examples for decorators are classmethod() and staticmethod().
The decorator syntax is merely syntactic sugar, the following two function definitions are semantically equivalent:
The decorator syntax is merely syntactic sugar, the following two function
definitions are semantically equivalent:
def f(...):
...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment