Python Built-in Modules: Unterschied zwischen den Versionen
Aus Matts Wiki
| Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung | Matt (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung | ||
| Zeile 1: | Zeile 1: | ||
| For more Python Basics see [[Python Basics]] | For more Python Basics see [[Python Basics]] | ||
| == Built-in Modules == | |||
| === os - Operating System === | === os - Operating System === | ||
| Zeile 10: | Zeile 12: | ||
| [[Kategorie:Python]] | [[Kategorie:Python]] | ||
| === Math === | |||
| from math import inf, sqrt | |||
| === Heapq === | |||
| from heapq import heappop, heappush | |||
Version vom 9. Februar 2025, 09:07 Uhr
For more Python Basics see Python Basics
Built-in Modules
os - Operating System
How to Clear the Console from a Python Script
 import os
 os.system('cls' if os.name == 'nt' else 'clear')
Math
from math import inf, sqrt
Heapq
from heapq import heappop, heappush
