import m1 if __name__ == '__main__': print(m1.calcsum(10)) print('ex01.py', __name__)
import ex01 import m1 print('ex02.py', __name__) print(m1.calcsum(20)) if __name__ == '__main__': print(dir(m1)) print(m1.__file__) pass
import m1 if __name__ == '__main__': print(m1.calcsum(10)) print('ex01.py', __name__)
import ex01 import m1 print('ex02.py', __name__) print(m1.calcsum(20)) if __name__ == '__main__': print(dir(m1)) print(m1.__file__) pass