File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,15 @@ __Tuple__
7878- t= (1 )...
7979- a = tuple ([1 ,2 ,3 ]): list -> tuple
8080
81+ __Set__
82+ ```python
83+ s = set ([iterable])
84+ s.union(t)
85+ s.intersection(t)
86+ s.difference(t)
87+ ...
88+ ```
89+
8190__Dictionary__
8291- unordered -> can' t sort, slice...
8392- __key__ types: int , float , string, tuple .
@@ -125,6 +134,7 @@ Escaped characters
125134- Groups & Lookaround
126135- (abc) capture group
127136- \1 backreference to group #1, __use for sub method__
137+ + ex: (.+ ) \1 match "4242"
128138- (? :abc) non- capturing group
129139- (? =abc) positive lookahead
130140- (?! abc) negative lookahead
@@ -133,7 +143,7 @@ Quantifiers & Alternation
133143- a* a+ a? 0 or more, 1 or more, 0 or 1
134144- a{5 } a{2 ,} exactly five, two or more
135145- a{1 ,3 } between one & three
136- - a+ ? a{2 ,}? match as few as possible
146+ - a+ ? a{2 ,}? , a * ? , a ?? match as few as possible (non - greedy)
137147- ab| cd match ab or cd
138148
139149# # Exception
You can’t perform that action at this time.
0 commit comments