예제 #1
0
from my_module import my_func

x = int(input("Введите выработку "))
y = int(input("Введите ставку "))
z = int(input("Введите премию "))

print(my_func(x, y, z))
예제 #2
0
#Example how to import from a module

from my_module import my_func   
my_func()

#Example how to import from a Package:

from MyMainPackage import some_main_script  #import from a main package
from MyMainPackage.SubPackage import  my_sub_script  #import from a sub package

some_main_script.report_main()

my_sub_script.sub_report()
예제 #3
0
import my_module as m


lst = ['A', 2, 'bb', 14, 'ff', 'Test', 'Excel', 'Data', 20]
m.my_func(lst)