Python/QuickRef: Difference between revisions
< Python
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class="wikitable" | {| class="wikitable" | ||
! list | ! [https://docs.python.org/3/tutorial/datastructures.html#more-on-lists list] | ||
! [https://docs.python.org/3/tutorial/datastructures.html#sets set] | |||
! [https://docs.python.org/3/library/stdtypes.html#mapping-types-dict dict] | |||
|- | |- | ||
| | | valign="top" | | ||
* append(x) | * append(x) | ||
* extend(iter) | * extend(iter) | ||
| Line 14: | Line 16: | ||
* reverse() | * reverse() | ||
* copy() | * copy() | ||
| | | valign="top" | | ||
| | * add(x) | ||
* remove(x) | |||
* pop() | |||
* clear() | |||
| valign="top" | | |||
* clear() | |||
* copy() | |||
* get(key, [default]) | |||
* items() | |||
* keys() | |||
* pop(key, [default]) | |||
* popitem() | |||
|} | |} | ||