форкнуто от main/python-labs
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
27 строки
683 B
Python
27 строки
683 B
Python
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(f"Прошло меньше {math.ceil(c2)} минуты")
|