pythonrun的精选

当前位置 /首页/pythonrun的精选/列表
pythonrun怎么改名字

pythonrun怎么改名字

2024-03-18
首先获得工作路径importosworkpath=wd()拼接获取和的绝对路径src=(wd(),&#&#39)dst=(wd(),&#&#39)使用rename函数try:me(src,dst)exceptExceptionase:print(e)print(&#39renamefilefailrn&#39)else:print(&#39renamefile...