文件操作 - hello.py
返回文件管理
返回主菜单
删除本文件
文件: /lib64/python2.7/Demo/tkinter/guido/hello.py
编辑文件内容
# Display hello, world in a button; clicking it quits the program import sys from Tkinter import * def main(): root = Tk() button = Button(root) button['text'] = 'Hello, world' button['command'] = quit_callback # See below button.pack() root.mainloop() def quit_callback(): sys.exit(0) main()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件