3 changed files with 138 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
import matplotlib.pyplot as plt |
|||
import numpy as np |
|||
|
|||
x = np.array([1,2,2,1,1]) |
|||
y = np.array([1,1,2,2,1]) |
|||
|
|||
plt.plot(x,y) |
|||
plt.show() |
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,18 @@ |
|||
# import termcolor <-využítí celé knihovny |
|||
from termcolor import colored #<- využítí část knihovny |
|||
from pyfiglet import Figlet |
|||
|
|||
def cervena(text): |
|||
return colored(text,"red") |
|||
|
|||
def zelena(text): |
|||
return colored(text,"green") |
|||
|
|||
def modra(text): |
|||
return colored(text,"blue") |
|||
|
|||
##MAIN |
|||
f = Figlet(font='slant') |
|||
print(modra(f.renderText("DEMO"))) |
|||
print(cervena("Hello") |
|||
,zelena("World!")) |
|||
Loading…
Reference in new issue