# Урок № 13 по Python - ООП #import module #import module as pm #from module import plus #from module import plus, minus from module import plus, minus as m #print("импорт данных", module.mmm) #module.plus(3, 2) #module.minus(3, 2) #pm.plus(3, 2) #pm.minus(3, 2) plus(3, 2) #minus(3, 2) m(3, 2) from random import randrange #from random import randrange as r print("рандомное число", randrange(10)) #print("рандомное число", r(10)) input()
#import module as mod #import os #print(mod.plus(2,4)) #print(os.getpid()) import os from module import min as m, plus as p print(m(12, 2)) print(os.getpid()) try: print(plus(3, 7)) except NameError: print('Такого метода нет')