使用python获取Windows当前桌面的背景图片
import os
import getpass
def Get_Background_Path():
# Current_Desktop_Background_File
CDBF = "C:/Users/" + getpass.getuser() + "/AppData/Roaming/Microsoft/Windows/Themes/CachedFiles"
#Current_Desktop_Background
CDB = CDBF + "/" + os.listdir(CDBF)[0]
return CDB
print(Get_Background_Path())