文件操作 - command_template
返回文件管理
返回主菜单
删除本文件
文件: /lib64/python2.7/distutils/command/command_template
编辑文件内容
"""distutils.command.x Implements the Distutils 'x' command. """ # created 2000/mm/dd, John Doe __revision__ = "$Id$" from distutils.core import Command class x (Command): # Brief (40-50 characters) description of the command description = "" # List of option tuples: long name, short name (None if no short # name), and help string. user_options = [('', '', ""), ] def initialize_options (self): self. = None self. = None self. = None # initialize_options() def finalize_options (self): if self.x is None: self.x = # finalize_options() def run (self): # run() # class x
修改文件时间
将文件时间修改为当前时间的前一年
删除文件