예제 #1
0
#!/usr/bin/env python

import hello_module as h

h.hello(2)

예제 #2
0
#!/usr/bin/env python

import hello_module

hello_module.hello(2)

예제 #3
0
#!/usr/bin/env python

from hello_module import hello

hello(2)

예제 #4
0
#!/usr/bin/env python

import hello_module as h

h.hello(2)
예제 #5
0
# 测试导入一个自定义模块

import hello_module

hello_module.hello(11)
예제 #6
0
#!/usr/bin/python3

import hello_module as h

h.hello()