文件操作 - __init__.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/numpy/doc/__init__.py
编辑文件内容
import os ref_dir = os.path.join(os.path.dirname(__file__)) __all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and not f.startswith('__')) for f in __all__: __import__(__name__ + '.' + f) del f, ref_dir __doc__ = """\ Topical documentation ===================== The following topics are available: %s You can view them by >>> help(np.doc.TOPIC) #doctest: +SKIP """ % '\n- '.join([''] + __all__) __all__.extend(['__doc__'])
修改文件时间
将文件时间修改为当前时间的前一年
删除文件