首先获得工作路径
import osworkpath = wd()
拼接获取和的绝对路径
src = (wd(), ')dst = (wd(), ')
使用rename函数
try: me(src, dst)except Exception as e: print(e) print('rename file failrn')else: print('rename file successrn')