Пример #1
0
#!/usr/bin/env python
import sys

import electrical as elec # <1>
import navigation as nav  # <2>

print(elec.current()) # <3>
print(nav.current())  # <4>

for path in sys.path:
    print(path)
#!/usr/bin/env python
import electrical as e  # <1>
import navigation as n  # <2>

print(e.current())  # <3>
print(n.current())  # <4>
Пример #3
0
#!/usr/bin/env python

from electrical import current, voltage, amps  # <1>
from navigation import *  # <2>

print(current())  # <3>
print(voltage())
print(amps())
Пример #4
0
#!/usr/bin/env python

# Uses as to namespace functions to a given module
import electrical as elec
import navigation as nav

print(elec.current())  # AC
print(nav.current())  # slow