форкнуто от main/python-labs
Родитель
b2321e5dfb
Сommit
c3592429de
@ -0,0 +1,26 @@
|
||||
import math
|
||||
import cmath
|
||||
import time
|
||||
import random
|
||||
import string
|
||||
phase = cmath.phase(0.2+0.8j)
|
||||
rnd = round(phase,2)
|
||||
rnd_ = rnd*20
|
||||
corteg = (math.floor(rnd_/3),rnd_%3)
|
||||
print(corteg)
|
||||
c1 = time.time()
|
||||
s = time.asctime().split()
|
||||
hours_minutes = s[3]
|
||||
hours_minutes = hours_minutes [:-3]
|
||||
print(hours_minutes)
|
||||
list_dninedeli = ["Пн", "Вт", "Ср","Чт","Пт", "Сб","Вс"]
|
||||
print(random.sample(list_dninedeli,3))
|
||||
choice = list(range(14,33,3))
|
||||
unif = random.choice(choice)
|
||||
print(unif)
|
||||
N = round(random.gauss(15,4))
|
||||
N = max(1, N)
|
||||
letters = random.choices(string.ascii_letters, k=N)
|
||||
print(letters)
|
||||
c2 = time.time() - c1
|
||||
print("Прошло меньше" + math.ceil(c2) + " минуты")
|
Загрузка…
Ссылка в новой задаче