rename python实现

#!/usr/bin/python2

#auth:codewalker

#mail:001@codewalker.me

#version:0.1

from sys import argv, exit
from os import rename
if len(argv) >= 3:
rename(argv[1], argv[2])
else:
print ‘Must be more than 2 args’
exit(1)