Python
文章平均质量分 64
angelof7
这个作者很懒,什么都没留下…
展开
-
Python实现linux下文件备份
#!/usr/bin/python #Filename: backup_ver2.py import os import time source = ['/home/user/public_html', '/home/angelo/Pictures'] target_dir = '/home/backup/' today = target_dir +time.strft原创 2014-02-27 10:03:36 · 1069 阅读 · 0 评论 -
给Python初学者的一些技巧
以下是我近些年收集的一些Python实用技巧和工具,希望能对你有所帮助。 交换变量 1 2 3 4 5 6 7 8 9 x = 6 y = 5 x, y = y, x print x >>> 5 print转载 2014-03-21 09:03:07 · 392 阅读 · 0 评论