导航

2012年6月20日

摘要: 前两天看了一篇文章《自己写脚本自动更换桌面》,觉得用Python实现起来应该更容易理解,于是就有了下面的dynamic-wallpaper.py脚本。dynamic-wallpaper.py脚本的完整内容:#!/usr/bin/python# -*- coding: utf-8 -*-import os, os.path, fnmatch, commands# 壁纸图片所在的目录wallpaper_path = '/usr/share/backgrounds'# 搜索所有可用的壁纸avail_wallpapers = []for file in os.listdir(wallp 阅读全文

posted @ 2012-06-20 15:19 eastson 阅读(1523) 评论(0) 推荐(0) 编辑