/
gaara
/
eeeeee
Обзор
Документация
Войти
/
gaara
/
eeeeee
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
main.py
67 строк
897 B
gaara
create: __init__.py, calc.py, main.py
06 май 2026, 09:46
Верифицирован
06 май 2026, 09:46
d1347e1
Код
Авторство
О чём код?
from calc import add , proiz def main(): print(add(2,3)) print(proiz(6,8)) if __name__ == "__main__": main() import this print(this.s) def ff(): b = 7 def ff1(): a = 5 print(b) #count = 1 #def countrer(): #count = 0 #def inner(): #nonlocal count # global count # count += 1 # return inner #x = countrer() #x() #print(count) def ff(): #x = 5 def prn(): print(x) x = 5 return prn func = ff() func() reg = {} exec ("x = 10", reg) z = reg["x"] print(z) #import calc #print("1.сложение") #print("2.умножение") #x = input("выберите операцию 1 или 2") #a = float(input("первое число:")) #b = float (input("второе число:")) #if x =="1": #res = calc.add(a,b) #print(f"{a}+{b}={res}") # #import calc #def main(): # print(calc)