Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
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: by walter
