Include a file: Difference between revisions

Line 1,824:
One can write:
 
<lang python>import one # note there is no .py sufix
```python
import one # note there is no .py sufix
 
one.one_function()
object = one.OneClass()</lang>
 
```
or
 
```
<lang python>from one import *</lang>
 
```
or, recommended style:
 
```
<lang python>from one import OneClass, one_function
 
one_function()
object = OneClass()</lang>
```
 
=={{header|Prolog}}==
Anonymous user