sidebar_python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sidebar_python [2024/05/17 11:11] – walter | sidebar_python [2024/06/01 15:05] (current) – walter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Übersicht Python ====== | ====== Übersicht Python ====== | ||
+ | * [[python_json|JSON Handling]] | ||
+ | * [[python_sort|Sortieren von list/ | ||
+ | * [[python_terminalsize|Terminal-Breite/ | ||
+ | * [[python_qtableview|QTableview]] | ||
- | |||
- | <code python> | ||
- | import json | ||
- | </ | ||
- | |||
- | **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.1715944296.txt.gz · Last modified: 2024/05/17 11:11 by walter