Browse Source

termcolor

master
Jakub Škrabánek 4 days ago
parent
commit
fdc75cf145
  1. 12
      18_pip/requirements.txt
  2. 16
      19_termcolor/main.py
  3. 1
      19_termcolor/requirements.txt

12
18_pip/requirements.txt

@ -0,0 +1,12 @@
contourpy==1.3.3
cycler==0.12.1
fonttools==4.61.1
kiwisolver==1.4.9
matplotlib==3.10.8
numpy==2.4.1
packaging==25.0
pillow==12.1.0
pyparsing==3.3.1
python-dateutil==2.9.0.post0
six==1.17.0
termcolor==3.3.0

16
19_termcolor/main.py

@ -0,0 +1,16 @@
import termcolor as tc
print(tc.colored("Hello World!","green"))
# importování celé knihovny
# import math
# print(math.sqrt(16))
#importování jenom část knihovny
# from math import sqrt
# print(sqrt(16))
#importování části knihovny a přejmenování
from math import sqrt as odmocnina, pi
print(tc.colored(odmocnina(16),"blue"))
print(tc.colored(pi,"yellow"))

1
19_termcolor/requirements.txt

@ -0,0 +1 @@
termcolor==3.3.0
Loading…
Cancel
Save