Include a file: Difference between revisions

Line 1,825:
 
<lang python>import one # note there is no .py sufix
# then you may use
# one.one_function()
# object = one.OneClass()</lang>
 
otherwise use
one.one_function()
object = one.OneClass()</lang>
 
or
 
<lang python>from one import *</lang>
Line 1,836:
 
<lang python>from one import OneClass, one_function
# then you may use
 
# one_function()
# object = OneClass()</lang>
 
=={{header|Prolog}}==
Anonymous user