文件操作 - idle.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib64/python2.7/idlelib/idle.py
编辑文件内容
import os.path import sys # If we are working on a development version of IDLE, we need to prepend the # parent of this idlelib dir to sys.path. Otherwise, importing idlelib gets # the version installed with the Python used to call this module: idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, idlelib_dir) import idlelib.PyShell idlelib.PyShell.main()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件