форкнуто от main/python-labs
Родитель
7dc5269479
Сommit
00419d8165
@ -0,0 +1,20 @@
|
||||
import math
|
||||
import cmath
|
||||
import time
|
||||
import random
|
||||
import string
|
||||
import statistics
|
||||
print(math.floor((round(cmath.phase(0.2+0.8j), 2) * 20) / 3), (round(cmath.phase(0.2+0.8j), 2) * 20) % 3)
|
||||
msc_time = time.localtime(time.time() + 3 * 3600); print(msc_time)
|
||||
mytime = f"{msc_time.tm_hour:02d}:{msc_time.tm_min:02d}"; print(mytime)
|
||||
wd = ['Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', 'Воскресенье']
|
||||
p = random.sample(wd, 3); print(p)
|
||||
k = list(range(14, 33, 3)); print(k)
|
||||
rand = random.choice(k); print(rand)
|
||||
N = round(random.gauss(15, 4))
|
||||
N=max(1,N); print(N)
|
||||
rl = random.choices(string.ascii_uppercase, k=N); print(rl)
|
||||
['J', 'Y', 'Z', 'Z', 'I', 'W', 'F', 'Y', 'B', 'H', 'G', 'N', 'B', 'F', 'B', 'D', 'P', 'Y', 'R', 'I', 'R', 'C']
|
||||
c = time.time();print(c)
|
||||
inter_sec = c - time.mktime(msc_time); print(inter_sec)
|
||||
inter_min = round(inter_sec / 60, 2); print(inter_min)
|
||||
Загрузка…
Ссылка в новой задаче