Add Python notes

This commit is contained in:
2022-05-06 00:49:26 +03:00
parent 4c0cdb2f71
commit 1863176b39
57 changed files with 1205 additions and 5 deletions

3
python/модули/from.py Executable file
View File

@@ -0,0 +1,3 @@
#Можно подключить только 1 функцию из модуля
from random import randint as random
print(random(1,20))

View File

@@ -0,0 +1,16 @@
#Подключение модуля, связанного с математикой
import math
#as позволяет в будущем использовать модуль при помощи псевдонима
import random as r
#вывод числа e
print(math.e)
#вывод числа пи
print(math.pi)
#вывод косинуса
print(math.cos(30))
print(r.randint(0, 20))