![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习_高级篇
lorenxu81
药药切克闹,编程代码来一套!
展开
-
python中模块的定义
python中模块的定义myclass.py# -*- coding: utf-8 -*- """ 模块的说明文档 module docstring - 放置在在模块的import之前 - 成对的三个双引号包裹 - 可以提供模块的简要信息,如: @file: filename @author:yourname @date:2017-xx-xx @version: 1.原创 2017-04-06 18:25:06 · 510 阅读 · 0 评论 -
python module
module文件名:MyClass.py[python code]""" module docstring """ import numpy as np class MyClass: """ class doc """ def __init__(self): print "initial MyClass" if __name__ == "__mi原创 2017-04-06 13:21:08 · 254 阅读 · 0 评论