【发布时间】:2015-12-21 18:01:08
【问题描述】:
我正在尝试使用 python 更改我的背景图像,但我不起作用,我找不到原因。
这是我的代码:
import ctypes
import os
folder = "C:\\Users\\Nuriddin\\Desktop\\images"
image = "images[0].jpg"
image_path = os.path.join(folder, image)
SPI_SETDESKWALLPAPER = 20
ctypes.windll.user32.SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, image_path, 0)
这段代码有什么问题? (我确定我走的是好路)
我使用的是 Windows 10 和 Python 3.4-x
【问题讨论】:
-
@baldr 谢谢没想到来自Python的版本。
标签: python python-3.x