**创建快捷方式
```python
import win32
```**
网上没有一个正经写这个的,我十分无语,必须用python,否则没用
**创建快捷方式
```python
import win32
```**
网上没有一个正经写这个的,我十分无语,必须用python,否则没用
使用os,win32com.client即可实现,示例:
import os, win32com.client
desktop = "path/to/Desktop"#桌面文件夹的完整路径
path = os.path.join(desktop, 't910.txt.lnk')#要生成的快捷方式路径及文件名
target = icon="path/to/t910.txt" #要生成快捷方式的原文件路径
shell = win32com.client.Dispatch("WScript.Shell")#绑定
shortcut = shell.CreateShortCut(path)#生成
shortcut.Targetpath = target#指定路径
shortcut.IconLocation = icon#指定图标
shortcut.save()#保存。
如有帮助,请点采纳。