怎么让下面代码运行成功
import os
import shutil
def change():
os.rename("C:\\Windows\\System32\\drivers\\etc\\hosts", "hosts_del")
shutil.move("hosts", "C:\\Windows\\System32\\drivers\\etc")
change()
怎么让下面代码运行成功
import os
import shutil
def change():
os.rename("C:\\Windows\\System32\\drivers\\etc\\hosts", "hosts_del")
shutil.move("hosts", "C:\\Windows\\System32\\drivers\\etc")
change()