python module usage
hello.py
#!/usr/bin/python
def hello():
print "imported me,hello world"
def login():
print "I'm already login"
test.py
--------------------------------------
#!/usr/bin/Python
import hello
hello.hello()
hello.login()
相关文章