Пример #1
0
# Modules

# A module is a file containing Python definitions and statements.
# The file name is the module name with the suffix .py appended

# Will search for built-in module then look at your files.

# We will use it to represent our 3 Different App Computers

import computer1, computer2
import computer3 as com3  # packages

computer1.printName()
computer2.printName()
com3.printName()

## from package Database --> get utils.py
## from package Handlers --> utils.py

# from Database import utils as dbUtils
# from Handlers import utils as hUtils
Пример #2
0
__author__ = 'lyndsay.beaver'

import computer1, computer2
import computer3 as com3

computer1.printName()
computer2.printName()
com3.printName()
import computer1, computer2, computer3

# from database import utils as ut
# from handlers import utils

computer1.printName()
computer2.printName()
computer3.printName()

if __name__ == "__main__":
  computer1.multiplyHandler(34,9)
  computer1.multiplyHandler(54,90)
  computer1.multiplyHandler(44,89)
  computer1.multiplyHandler(24,78)
  computer1.multiplyHandler(45,111)
  computer1.multiplyHandler(45,111)
  computer1.multiplyHandler(45,53)
  computer1.multiplyHandler(45,63)
  computer1.multiplyHandler(45,73)
Пример #4
0
import computer1, computer2, computer3 

computer1.printName()
computer2.printName()
computer3.printName()