sidebar_python
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sidebar_python [2024/05/10 11:57] – created walter | sidebar_python [2024/06/01 15:05] (current) – walter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | <code python> | + | * [[python_json|JSON Handling]] |
- | import json | + | * [[python_sort|Sortieren von list/ |
- | </code> | + | * [[python_terminalsize|Terminal-Breite/Höhe bestimmen]] |
+ | * [[python_qtableview|QTableview]] | ||
- | **LOAD** | ||
- | |||
- | <code python> | ||
- | json_data = ' | ||
- | json_object = json.loads(json_data) | ||
- | |||
- | with open(' | ||
- | json_object = json.load(json_file) | ||
- | </ | ||
- | |||
- | **SAVE** | ||
- | |||
- | <code python> | ||
- | with open(' | ||
- | json.dump(data, | ||
- | </ | ||
- | |||
- | **PRINT** | ||
- | |||
- | <code python> | ||
- | print(json_object) | ||
- | print(json.dumps(json_object)) | ||
- | print(json.dumps(json_object, | ||
- | </ |
sidebar_python.1715342233.txt.gz · Last modified: 2024/05/10 11:57 by walter