#!/usr/bin/python # -*- coding:utf8 -*- import osimport sysdef ReName(filpath): index = 0; video_list = os.listdir(filpath) for video_index in range(0, len(video_list)): full_name = os.path.join(filpath, video_list[video_index]) rename = "loading" + str(index) + ".png" os.rename(full_name, os.path.join(filpath, rename)) index = index+ 1 if __name__ == '__main__': filepath = sys.argv[1] ReName(filepath)