Python学习笔记(五): from..import 1. 创建模块
#!/usr/bin/python# Filename: mymodule_demo2.pyfrom mymodule import sayhi, version# Alternative:# from mymodule import *sayhi()print 'Version', version