标签:author 模块 结果 .com height rom from pytho imp
main.py文件
#_*_coding:utf-8_*_ #__author__ = "csy" from module_csy import say_hello as hello #module_csy模块的say_hello函数起别名为hello print(hello())
module_csy.py文件
#_*_coding:utf-8_*_ #__author__ = "csy" name = ‘csy‘ def say_hello(): print(‘Hello csy!‘)
执行main.py输出结果:
标签:author 模块 结果 .com height rom from pytho imp
原文地址:http://www.cnblogs.com/csy113/p/7077533.html