#!/usr/bin/env python

import hello_module as h

h.hello(2)

Beispiel #2
0
#!/usr/bin/env python

import hello_module

hello_module.hello(2)

Beispiel #3
0
#!/usr/bin/env python

from hello_module import hello

hello(2)

Beispiel #4
0
#!/usr/bin/env python

import hello_module as h

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

import hello_module

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

import hello_module as h

h.hello()