示例#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()