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...