Python: Module: Unterschied zwischen den Versionen

Aus Flinkwiki
Wechseln zu: Navigation, Suche
(Seite aufräumen)
(math)
Zeile 25: Zeile 25:
 
== math ==
 
== math ==
  
sqrt
+
sqrt:
 +
>>> import math
 +
>>> math.sqrt(100)
 +
10.0
  
 
sin, cos, tan
 
sin, cos, tan

Version vom 2. Juni 2019, 08:50 Uhr

Seitenübersicht
Zur Seite "Python"
Zur Seite "Python: Tkinter"
Zur Seite "Python: pygame"


Allgemeines


os

Seite aufräumen

Im Terminal von Linux oder Mac:

os.system("clear")

In DOS-Box (cmd)):

os.system("cls")

math

sqrt:

>>> import math
>>> math.sqrt(100)
10.0

sin, cos, tan




| |