Python Built-in Modules: Unterschied zwischen den Versionen
Aus MattWiki
Matt (Diskussion | Beiträge) Die Seite wurde neu angelegt: „=== os - Operating System === ==== How to Clear the Console from a Python Script ==== <syntaxhighlight lang="python3"> import os os.system('cls' if os.name == 'nt' else 'clear') </syntaxhighlight> Kategorie:Python“ |
Matt (Diskussion | Beiträge) K Matt verschob die Seite Python Modules nach Python Built-in Modules, ohne dabei eine Weiterleitung anzulegen |
||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
For more Python Basics see [[Python Basics]] | |||
== os - Operating System == | |||
==== How to Clear the Console from a Python Script ==== | ==== How to Clear the Console from a Python Script ==== | ||
Zeile 8: | Zeile 10: | ||
[[Kategorie:Python]] | [[Kategorie:Python]] | ||
== Math == | |||
from math import inf, sqrt | |||
== Heapq == | |||
from heapq import heappop, heappush |
Aktuelle Version vom 9. Februar 2025, 09:08 Uhr
For more Python Basics see Python Basics
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