码迷,mamicode.com
首页 > 编程语言 > 详细

python module usage

时间:2018-01-10 14:12:46      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:port   bin   import   hello   --   def   code   ready   print   

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()

python module usage

标签:port   bin   import   hello   --   def   code   ready   print   

原文地址:http://blog.51cto.com/546136/2059390

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!