os.path.join(os.path.expanduser("~"), "Desktop")
其中os.path.join()的作用是:将Desktop和系统路径组成新路径。
os.path.expanduser("~")的作用是获取系统中的“~”路径
os.path.join(os.path.expanduser("~"), "Desktop")
其中os.path.join()的作用是:将Desktop和系统路径组成新路径。
os.path.expanduser("~")的作用是获取系统中的“~”路径