import examples
This commit is contained in:
parent
c5b0de1f2b
commit
336024b552
3 changed files with 23 additions and 0 deletions
9
python-temel/sample.import.py
Normal file
9
python-temel/sample.import.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#sample.py
|
||||||
|
|
||||||
|
import test
|
||||||
|
|
||||||
|
def main():
|
||||||
|
print(test.x)
|
||||||
|
test.foo()
|
||||||
|
|
||||||
|
main()
|
8
python-temel/test.import.2.py
Normal file
8
python-temel/test.import.2.py
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# test.py
|
||||||
|
|
||||||
|
print('I am test module')
|
||||||
|
|
||||||
|
def foo():
|
||||||
|
print('I am foo')
|
||||||
|
|
||||||
|
x = 10
|
6
python-temel/test.import.py
Normal file
6
python-temel/test.import.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# test.py
|
||||||
|
|
||||||
|
def foo():
|
||||||
|
print('I am foo')
|
||||||
|
|
||||||
|
x = 10
|
Loading…
Reference in a new issue