先写两个测试模块test1.py和test2.py以备调用
test1.py
# _*_ coding:utf-8 _*_
"""
file:test1.py
date:2018-07-24 11:14 AM
author:wwy
desc:
"""
title = '模块1'
# 函数
def say_hello():
print '我是 %s' % title
# 类
class Cat(object):
pass
test2.py
# _*_ coding:utf-8 _*_
"""
file:test2.py
date:2018-07-24 11:14 AM
author:wwy
desc:
"""
title = '模块2'
# 函数
def say_hello():
print '我是 %s' % title
# 类