目录
- 脚本代码
- 快捷键系统代码
脚本代码
mos.bat
@echo off
chcp 65001
python F:\学\项目\MOS2.0\MOSEnglish.py
exit()
快捷键系统代码
MOSEnglish.py
'''1.设置管理器2.设置文件夹 如c,d,e,f如 f13.设置程序 推荐腾讯的搜索文件 或者右键打开文件位置
'''
import os
import winreg# 获取当前系统的桌面绝对路径
def getDesktopPath():key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders')path = winreg.QueryValueEx(key, "Desktop")[0]return path# 修改wifi名字和ssid
def setWifi(wifiSsid,wifiName):try:# 将文件读取到内存中with open("MOSEnglish.py", "r", encoding="utf-8") as f:lines = f.readlines()# 写的方式打开文件with open("MOSEnglish.py", "w", encoding="utf-8") as f_w:for line in lines:if line[0:9] == "wifiSsid=":line = f'wifiSsid=\'{wifiSsid}\'\n'elif line[0:9] == "wifiName=":line = f'wifiName=\'{wifiName}\'\n'f_w.write(line)print('successful!')except Exception as e:print('failed.')print(e)def showShortcut():print('------------------------------------------------------')print('set : 设置快捷键')print('------------------------------------------------------')print('del : 删除快捷键')print('------------------------------------------------------')print('ros : 重新打开该程序')print('------------------------------------------------------')print('setwifi : 设置wifi')print('------------------------------------------------------')print('wi : 连接wifi')print('------------------------------------------------------')print('ros : 重新打开该程序')print('------------------------------------------------------')print('ex : 退出该程序')print('------------------------------------------------------')print('s : 电脑睡眠')print('------------------------------------------------------')print('shut : 关机')print('------------------------------------------------------')print('h or help : 查看已设置的快捷键')print('------------------------------------------------------')print('restart : 重启电脑')print('------------------------------------------------------')print(r'f : F:')print('------------------------------------------------------')print(r'mospy : F:\学\项目\MOS2.0\MOSEnglish.py')print('------------------------------------------------------')print(r'hp : H:')print('------------------------------------------------------')print(r'y : H:\普通软件\Dict\YoudaoDict.exe')print('------------------------------------------------------')print(r'bdd : H:\普通软件\百度网盘\BaiduNetdisk\baidunetdisk.exe')print('------------------------------------------------------')print(r'wemeet : H:\普通软件\WeMeet\WeMeet\wemeetapp.exe')print('------------------------------------------------------')print(r'w : H:\普通软件\WeChat\WeChat.exe')print('------------------------------------------------------')print(r'f1 : F:\学\NoteBookAndBook')print('------------------------------------------------------')print(r'f2 : F:\学\postGraduate')print('------------------------------------------------------')print(r'f3 : F:\学\论文')print('------------------------------------------------------')print(r'f4 : F:\学\项目')print('------------------------------------------------------')print(r'ch : "G:\Program Files\Google\Chrome\Application\chrome.exe"')print('------------------------------------------------------')print(r'weread : F:\学\项目\WeRead.lnk')print('------------------------------------------------------')print(r'sticky : "F:\学\项目\Sticky Notes.lnk"')print('------------------------------------------------------')print(r'5 : os.system执行格式化程序')print('------------------------------------------------------')print(r'1 : F:\学\项目\一键打开Nature,知网.bat')print('------------------------------------------------------')print(r'mos : F:\学\项目\我的快捷键系统.docx')print('------------------------------------------------------')print(r'ml : F:\学\NoteBookAndBook\machineLearning.docx')print('------------------------------------------------------')print(r'pynote : F:\学\NoteBookAndBook\python笔记.docx')print('------------------------------------------------------')print(r'fh : H:\Programmer_Software\反黄之盾\FHZD.exe')print('------------------------------------------------------')print(r'wnd : F:\学\项目\吴恩达机器学习.lnk')print('------------------------------------------------------')print(r'qq : H:\普通软件\Tencent\QQ\Bin\QQ.exe')print('------------------------------------------------------')print(r'controlp : "G:\Users\10167\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Control Panel.lnk"')print('------------------------------------------------------')print(r'cmd : "G:\Users\10167\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk"')print('------------------------------------------------------')print(r'hps : H:\Programmer_Software')print('------------------------------------------------------')print(r'p : "H:\Programmer_Software\PyCharm Community Edition 2021.2.2\bin\pycharm64.exe"')print('------------------------------------------------------')print(r'kjj : E:\工作准备\笔记\快捷键.md')print('------------------------------------------------------')print(r'e : E:')print('------------------------------------------------------')print(r'subl : H:\Programmer_Software\Sublime Text\sublime_text.exe')print('------------------------------------------------------')print(r'wp : H:\普通软件\WPS Office\WPS Office\11.1.0.11294\office6\wps.exe')print('------------------------------------------------------')print(r'suc : F:\学\NoteBookAndBook\log\成功日记.docx')print('------------------------------------------------------')print(r'2 : F:\学\项目\一键获取贴吧今日信息.bat')print('------------------------------------------------------')print(r'jff : F:\学\NoteBookAndBook\log\Mylog')print('------------------------------------------------------')print(r'wndc : F:\学\项目\[中英字幕]吴恩达机器学习系列课程_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'7 : F:\学\项目\MOS\我的快捷键系统.docx')print('------------------------------------------------------')print(r'co : H:\普通软件\网易云音乐\CloudMusic\cloudmusic.exe')print('------------------------------------------------------')print(r'bj : H:\普通软件\BcutBilibili\BCUT.exe')print('------------------------------------------------------')print(r'tgsq : F:\学\项目\听歌识曲.lnk')print('------------------------------------------------------')print(r'zy : F:\学\项目\庄自在的个人空间_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'js : F:\学\NoteBookAndBook\log\Mylog\MyLog.xls')print('------------------------------------------------------')print(r'wisdom : F:\学\NoteBookAndBook\语文积累.md')print('------------------------------------------------------')print(r'rwl : G:\Program Files\WindowsApps\28017CharlesMilette.TranslucentTB_2021.5.0.0_x64__v826wp6bftszj\TranslucentTB.exe')print('------------------------------------------------------')print(r'yjjb : F:\学\项目\一键举报不良网站.bat')print('------------------------------------------------------')print(r'0 : 执行不打开word写东西操作')print('------------------------------------------------------')print(r'addwpy : F:\学\项目\MOS2.0\add_paragraph_without_open_word.py')print('------------------------------------------------------')print(r'yw : F:\学\NoteBookAndBook\log\起心动念规律.docx')print('------------------------------------------------------')print(r'love : F:\学\NoteBookAndBook\log\爱.docx')print('------------------------------------------------------')print(r'formatpy : F:\学\postGraduate\mathematicsForMachineLearning\python爬虫\Chapter0_处理WordExcel\2.处理带图片的word\2.3整理带图片的word中的文本.py')print('------------------------------------------------------')print(r'wndh : F:\学\项目\吴恩达机器学习系列课后作业-02逻辑回归_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'paint : G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Paint.lnk')print('------------------------------------------------------')print(r'cpql : G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Disk Cleanup.lnk')print('------------------------------------------------------')print(r'rwjh : G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Task Scheduler.lnk')print('------------------------------------------------------')print(r'service : G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\services.lnk')print('------------------------------------------------------')print(r'jsb : F:\学\项目\一键获取贴吧今日信息.bat')print('------------------------------------------------------')print(r'jhrw : G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Task Scheduler.lnk')print('------------------------------------------------------')print(r'dwp : H:\Program Files (x86)\Tencent\DeskGo\3.1.1438.127\DeskWallPaper.exe')print('------------------------------------------------------')print(r'ds : H:\Program Files (x86)\Tencent\DeskGo\3.1.1438.127\DesktopSearch64.exe')print('------------------------------------------------------')print(r'fqsj : H:\Programmer_Software\Pomodoro\Pomodoro.exe')print('------------------------------------------------------')print(r'typora : H:\Programmer_Software\Typora\Typora.exe')print('------------------------------------------------------')print(r'latex : F:\学\项目\网页快捷方式\在线LaTeX公式编辑器-编辑器.lnk')print('------------------------------------------------------')print(r'fanchang : F:\学\项目\网页快捷方式\弹唱|秋刀鱼的滋味^ω^《七里香》-周杰伦(Cover).lnk')print('------------------------------------------------------')print(r'piano : F:\学\项目\网页快捷方式\在线钢琴模拟器 - 全键盘模拟钢琴 - 网页上弹钢琴 - 钢琴在线玩.lnk')print('------------------------------------------------------')print(r'mlh : F:\学\NoteBookAndBook\吴恩达机器学习课后作业编程.docx')print('------------------------------------------------------')print(r'zut : F:\学\项目\网页快捷方式\中原工学院.lnk')print('------------------------------------------------------')print(r'charles : H:\Programmer_Software\Charles\Charles.exe')print('------------------------------------------------------')print(r'boss : F:\学\项目\网页快捷方式\BOSS直聘-找工作我要跟老板谈!招聘求职找工作!.lnk')print('------------------------------------------------------')print(r'pyv : H:\Programmer_Document\python_virtual')print('------------------------------------------------------')print(r'pyclc : F:\学\项目\网页快捷方式\尚硅谷Python爬虫教程小白零基础速通(含python基础+爬虫案例)_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'venv : H:\Programmer_Document\python_virtual\venv\Scripts')print('------------------------------------------------------')print(r'ciyun : F:\学\项目\网页快捷方式\词云制作 - 微词云.lnk')print('------------------------------------------------------')print(r'zygh : F:\学\NoteBookAndBook\职业规划.md')print('------------------------------------------------------')print(r'pycl : F:\学\NoteBookAndBook\爬虫')print('------------------------------------------------------')print(r'xm : G:\Program Files\XMind\XMind.exe')print('------------------------------------------------------')print(r'mswb : H:\Programmer_Software\MySQL_workBench\MySQLWorkbench.exe')print('------------------------------------------------------')print(r'zutb : F:\学\项目\网页快捷方式\中原工学院网上办事服务大厅.lnk')print('------------------------------------------------------')print(r'pythonexcel : F:\学\NoteBookAndBook\python基础\python操控Excel.md')print('------------------------------------------------------')print(r'dpp : "F:\学\项目\网页快捷方式\【720P cc字幕】数字图像处理 Guillermo Sapiro 杜克大学Image and Video Processing 第一周_哔哩哔哩_bilibili.lnk"')print('------------------------------------------------------')print(r'gscx : F:\学\NoteBookAndBook\机器学习\笔记\公式查询.md')print('------------------------------------------------------')print(r'sjwl : F:\学\NoteBookAndBook\机器学习\笔记\神经网络.md')print('------------------------------------------------------')print(r'wnd3 : "F:\学\项目\网页快捷方式\吴恩达机器学习ex3 python实现 - Heywhale.com.lnk"')print('------------------------------------------------------')print(r'wndh3 : F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-03多分类、神经网络前向传播_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'wndh4 : F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-04神经网络反向传播_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'wndh5 : "F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-05 偏差与方差_哔哩哔哩_bilibili.lnk"')print('------------------------------------------------------')print(r'wndh6 : "F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-06 SVM_哔哩哔哩_bilibili.lnk"')print('------------------------------------------------------')print(r'wndh9 : F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-09异常检测_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'wndh8 : F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-PCA_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'wndh10 : F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-10推荐系统_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'log2 : F:\学\NoteBookAndBook\log\2022年2月日志.md')print('------------------------------------------------------')print(r'ss : F:\学\项目\网页快捷方式\十四阿哥很nice的个人空间_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'monitor : F:\学\项目\监视网页\监视Cet6和up主更新.bat')print('------------------------------------------------------')print(r'mdz : F:\学\项目\微信朋友圈点赞提醒处理\朋友圈点赞监控.bat')print('------------------------------------------------------')print(r'dip : F:\学\NoteBookAndBook\图像处理')print('------------------------------------------------------')print(r'dipimg : F:\学\NoteBookAndBook\图像处理\图像处理所需图片')print('------------------------------------------------------')print(r'dipnote : F:\学\NoteBookAndBook\图像处理\轩辕十四图像处理')print('------------------------------------------------------')print(r'pycharm : "H:\Programmer_Software\PyCharm Community Edition 2021.2.2\bin"')print('------------------------------------------------------')print(r'video : F:\学\其它\视频')print('------------------------------------------------------')print(r'ad : F:\学\项目\桌面图标\阿里云盘.lnk')print('------------------------------------------------------')print(r'water : F:\学\项目\网页快捷方式\不高兴就喝水的个人空间_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'wegame : F:\学\项目\桌面图标\WeGame.lnk')print('------------------------------------------------------')print(r'jkpm : F:\学\项目\监控电脑屏幕.bat')print('------------------------------------------------------')print(r'sublime : "H:\Programmer_Software\Sublime Text"')print('------------------------------------------------------')print(r'git : "F:\学\项目\桌面图标\Git Bash.lnk"')print('------------------------------------------------------')print(r'mcph : F:\学\项目\网页快捷方式\PRML习题答案 - Rotopia - 博客园.lnk')print('------------------------------------------------------')print(r'opencv : "F:\学\项目\网页快捷方式\【2021B站最好的OpenCV课程推荐】OpenCV从入门到实战 全套课程(附带课程课件资料+课件笔记)_哔哩哔哩_bilibili.lnk"')print('------------------------------------------------------')print(r'jn : "G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Jupyter Notebook (anaconda).lnk"')print('------------------------------------------------------')print(r'adb : H:\Programmer_Software\sdk\platform-tools')print('------------------------------------------------------')print(r'xxqg : F:\学\项目\self_study.bat')print('------------------------------------------------------')print(r'logfile : F:\学\NoteBookAndBook\log')print('------------------------------------------------------')print(r'log : F:\学\NoteBookAndBook\log\2022年4月日志.md')print('------------------------------------------------------')print(r'zdh : F:\学\postGraduate\anaconda_codes\自动化')print('------------------------------------------------------')print(r'F:\学\项目\桌面图标\电脑管家.lnk : dngj')print('------------------------------------------------------')print(r'formatpaper : "F:\学\项目\1.0 Formatting paper.bat"')print('------------------------------------------------------')print(r'format2 : "F:\学\项目\3.0 Formatting Word image and text.bat"')print('------------------------------------------------------')print(r'dkks : G:\Users\10167\Desktop\文件\党课考试总结(新).docx')print('------------------------------------------------------')print(r'lyb : G:\Users\10167\Desktop\文件\大作业\数字图像处理大作业\数字图像处理课程考试要求.docx')print('------------------------------------------------------')print(r'zkl : F:\学\NoteBookAndBook\自控力.md')print('------------------------------------------------------')print(r'bili : G:\Users\10167\Desktop\文件\哔哩哔哩.lnk')print('------------------------------------------------------')print(r'ql : "H:\Program Files\Tencent\QQLive\QQLive.exe"')print('------------------------------------------------------')print(r'e3 : E:\下载地址\pytorch实战')print('------------------------------------------------------')print(r'e2 : "E:\下载地址\496 - 李超-OpenCV入门到进阶:实战三大典型项目-348元~12"')print('------------------------------------------------------')print(r'e1 : "E:\下载地址\298 - 会写代码的好厨师-深度学习之目标检测常用算法原理+实践精讲-499元【完结】"')print('------------------------------------------------------')print(r'xmlg : F:\学\项目\项目灵感.md')print('------------------------------------------------------')print(r'java : G:\Users\10167\Desktop\文件\【尚硅谷】Spring框架视频教程(spring5超详细源码级讲解)_哔哩哔哩_bilibili.lnk')print('------------------------------------------------------')print(r'idea : "D:\桌面\文件\idea64.exe - 快捷方式.lnk"')print('------------------------------------------------------')print(r'qw : D:\桌面\文件\企业微信.lnk')print('------------------------------------------------------')print(r'lab : H:\Programmer_Software\anaconda\Scripts\jupyter-lab.exe')print('------------------------------------------------------')print(r'wb : H:\Programmer_Software\MySQL_workBench\MySQLWorkbench.exe')print('------------------------------------------------------')print(r'paper : D:\桌面\文件\论文')print('------------------------------------------------------')print(r'jj : D:\剪辑')print('------------------------------------------------------')print(r'xshell : "D:\桌面\文件\Xshell 7.lnk"')print('------------------------------------------------------')print(r'vm : "D:\桌面\文件\VMware Workstation Pro.lnk"')print('------------------------------------------------------')print(r'tly : D:\桌面\文件\TLY.lnk')print('------------------------------------------------------')print(r'todesk : D:\桌面\文件\ToDesk.lnk')print('------------------------------------------------------')print(r'pc : "D:\桌面\文件\PyCharm 2022.2.2.lnk"')print('------------------------------------------------------')print(r'dd : D:\桌面\文件\icons\DingTalk.lnk')print('------------------------------------------------------')print(r'zw : D:\桌面\文件\icons\知网研学(原E-Study).lnk')print('------------------------------------------------------')print(r'hr : "D:\桌面\文件\Huorong Internet Security.lnk"')print('------------------------------------------------------')print(r'clash : "D:\桌面\文件\icons\Clash for Windows.lnk"')print('------------------------------------------------------')print(r'qm : D:\桌面\文件\icons\QQ音乐.lnk')print('------------------------------------------------------')print(r'edge : "D:\桌面\文件\icons\Microsoft Edge.lnk"')print('------------------------------------------------------')print(r'jl : D:\下载\简历')print('------------------------------------------------------')print(r'wt : D:\桌面\文件\维棠FLV视频下载软件.lnk')print('------------------------------------------------------')print(r'lw : D:\桌面\论文\第二篇论文')print('------------------------------------------------------')print(r'fq : D:\桌面\文件\icons\CuteCloud.lnk')print('------------------------------------------------------')print(r'vs : "D:\桌面\文件\icons\Visual Studio Code.lnk"')print('------------------------------------------------------')print(r'stc : D:\桌面\文件\icons\stcai-isp-v6.94E.exe.lnk')print('------------------------------------------------------')input('Press any key to exit...')def keyIsRepeat(key):with open('MOSEnglish.py','r',encoding='UTF-8') as f:lines = f.readlines()for line in lines:if f'num==\'{key}\'' in line:return Truedef addShortcutHelp(key,path):fullTxt = []with open('MOSEnglish.py','r',encoding='UTF-8') as f:lines = f.readlines()for i in range(len(lines)-1):# 如果下一步是帮助部分打印结束 则增加两行新的if (lines[i+1].strip() =='input(\'Press any key to exit...\')'):line = f' print(r\'{key} : {path}\')\n print(\'------------------------------------------------------\')\n'fullTxt.append(lines[i])fullTxt.append(line)else :fullTxt.append(lines[i])fullTxt.append(lines[-1])with open('MOSEnglish.py', 'w', encoding='UTF-8') as f:for line in fullTxt:f.write(line)deskTopPath = getDesktopPath()wifiSsid='WangChenJia'
wifiName='WangChenJia'
n='1'
while(n=='1'):os.system('cls')num=input('Please input shortcut key:')if num=='ex':n='2'#1. 设置快捷键elif num=='set' or num=='':os.system('cls')path = input('Please input path or Press Enter to cancel:')if path=='':passelse:if path[-1]=='\\':path=path[0:-1]programName = path.split('\\')[-1]suffix = programName.split('.')[-1]# print(suffix)# key = input('请输入一个快捷键完成设置,按Enter键取消设置:')key = input('Input a key or Press Enter to cancel:')if key!='' and not keyIsRepeat(key):with open('MOSEnglish.py','a',encoding='UTF-8') as f:if(suffix=='exe'):f.write(f'\n elif num==\'{key}\':\n os.startfile(r\'{path}\')')f.write(f'\n elif num==\' {key}\':\n os.system(\'%s%s\' % ("taskkill /F /IM ",\'{programName}\'))')elif suffix=='docx' or suffix=='doc' or suffix=='xls':isRelate = input('打开该word时是否同时打开所在的文件夹?(是:1,否:其它):')if(isRelate=='1'):# 获取该word所在路径wordPath = ('\\').join(path.split('\\')[0:-1])f.write(f'\n elif num==\'{key}\':\n os.startfile(r\'{wordPath}\')')else:f.write(f'\n elif num==\'{key}\':')f.write(f'\n os.startfile(r\'{path}\')')else:f.write(f'\n elif num==\'{key}\':\n os.startfile(r\'{path}\')')addShortcutHelp(key,path)n='2'os.startfile(f'{deskTopPath}\MOS.lnk')# 2.删除快捷键elif num=='del':allText = []shortcut = input('Please input the key you want to delete:')# with open('MOS.py','r',encoding='UTF-8') as f:delContentRows = 0with open('MOSEnglish.py','r',encoding='UTF-8') as f:lines = f.readlines()for i in range(len(lines)):# 如果找到 elif num==该键 从它开始标记要删除多少行 elif num==' y': os.system('%s%s' % ("taskkill /F /IM ",'YoudaoDict.exe'))if(lines[i].strip()==f'elif num==\'{shortcut}\':' or lines[i].strip()==f'elif num==\' {shortcut}\':'):delContentRows=1print(delContentRows)# 只要没到下一个elif 就继续标记elif delContentRows==1 and lines[i].strip()[0:4] != 'elif':delContentRows=1elif delContentRows==1 and lines[i].strip()[0:4] == 'elif':delContentRows=0# 遇到说明中的 该快捷键的语句,则跳过这一行和下一行if (f'print(r\'{shortcut} :' in lines[i]):lines[i] = ''lines[i+1] = ''elif (f'print(r\' {shortcut} :' in lines[i]):lines[i] = ''lines[i+1] = ''if delContentRows==0:allText.append(lines[i])file = open('MOSEnglish.py', 'w',encoding='UTF-8')for line in allText:file.write(line)file.close()n = '2'os.startfile(f'{deskTopPath}\MOS.lnk')# 3.重启该快捷键系统elif num=='ros':n='2'os.startfile(f'{deskTopPath}\MOS.lnk')elif num=='setwifi':wifiNameInput = input('Please input Wifi name:')wifiSsidInput = input('please input ssid:')setWifi(wifiNameInput,wifiSsidInput)elif num=='wi':os.system(f'netsh wlan connect ssid={wifiSsid} name={wifiName}')elif num=='s':os.system('rundll32.exe powrprof.dll,SetSuspendState 0,1,0')elif num=='shut':os.system('shutdown -s -t 30')elif num=='restart':os.system('shutdown -r')elif num=='h' or num=='help':showShortcut()elif num=='mospy':os.startfile(r'F:\学\项目\MOS2.0\MOSEnglish.py')elif num=='f':os.startfile(r'F:')elif num=='hp':os.startfile(r'H:')elif num=='y':os.startfile(r'H:\普通软件\Dict\YoudaoDict.exe')elif num==' y':os.system('%s%s' % ("taskkill /F /IM ",'YoudaoDict.exe'))elif num=='bdd':os.startfile(r'H:\普通软件\百度网盘\BaiduNetdisk\baidunetdisk.exe')elif num==' bdd':os.system('%s%s' % ("taskkill /F /IM ",'baidunetdisk.exe'))elif num=='wemeet':os.startfile(r'H:\普通软件\WeMeet\WeMeet\wemeetapp.exe')elif num==' wemeet':os.system('%s%s' % ("taskkill /F /IM ",'wemeetapp.exe'))elif num=='w':os.startfile(r'H:\普通软件\WeChat\WeChat.exe')elif num==' w':os.system('%s%s' % ("taskkill /F /IM ",'WeChat.exe'))elif num=='f1':os.startfile(r'F:\学\NoteBookAndBook')elif num=='f2':os.startfile(r'F:\学\postGraduate')elif num=='f3':os.startfile(r'F:\学\论文')elif num=='f4':os.startfile(r'F:\学\项目')elif num=='ch':os.startfile(r'"G:\Program Files\Google\Chrome\Application\chrome.exe"')elif num==' ch':os.system('%s%s' % ("taskkill /F /IM ",'chrome.exe'))elif num=='weread':os.startfile(r'F:\学\项目\WeRead.lnk')elif num=='sticky':os.startfile(r'"F:\学\项目\Sticky Notes.lnk"')elif num=='5':os.system(r'F: && cd F:\学\postGraduate\mathematicsForMachineLearning\python爬虫\Chapter0_处理WordExcel\2.处理带图片的word && python 2.3整理带图片的word中的文本.py')#os.startfile(r'"F:\学\项目\3.0 Formatting Word image and text.bat"')elif num=='1':os.startfile(r'F:\学\项目\一键打开Nature,知网.bat')elif num=='mos':os.startfile(r'F:\学\项目')os.startfile(r'F:\学\项目\我的快捷键系统.docx')elif num=='ml':#os.startfile(r'F:\学\NoteBookAndBook')os.startfile(r'F:\学\NoteBookAndBook\machineLearning.docx')elif num=='pynote':os.startfile(r'F:\学\NoteBookAndBook')os.startfile(r'F:\学\NoteBookAndBook\python笔记.docx')elif num=='fh':os.startfile(r'H:\Programmer_Software\反黄之盾\FHZD.exe')elif num==' fh':os.system('%s%s' % ("taskkill /F /IM ",'FHZD.exe'))elif num=='task':os.startfile(r'"G:\ProgramData\Microsoft\Windows\Start Menu\Programs\System Tools\Task Manager.lnk"')elif num=='wnd':os.startfile(r'F:\学\项目\吴恩达机器学习.lnk')elif num=='qq':os.startfile(r'H:\普通软件\Tencent\QQ\Bin\QQ.exe')elif num==' qq':os.system('%s%s' % ("taskkill /F /IM ",'QQ.exe'))elif num=='controlp':os.startfile(r'"G:\Users\10167\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Control Panel.lnk"')elif num=='cmd':os.startfile(r'"G:\Users\10167\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools\Command Prompt.lnk"')elif num=='hps':os.startfile(r'H:\Programmer_Software')elif num=='p':os.startfile(r'H:\Programmer_Software\PyCharm Community Edition 2021.2.2\bin\pycharm64.exe')elif num==' p':os.system('%s%s' % ("taskkill /F /IM ",'pycharm64.exe'))elif num=='kjj':os.startfile(r'E:\工作准备\笔记\快捷键.md')elif num=='e':os.startfile(r'E:')elif num=='subl':os.startfile(r'H:\Programmer_Software\Sublime Text\sublime_text.exe')elif num==' subl':os.system('%s%s' % ("taskkill /F /IM ",'sublime_text.exe'))elif num=='wp':os.startfile(r'H:\普通软件\WPS Office\WPS Office\11.1.0.11294\office6\wps.exe')elif num==' wp':os.system('%s%s' % ("taskkill /F /IM ",'wps.exe'))elif num=='suc':os.startfile(r'F:\学\NoteBookAndBook\log')elif num=='2':os.startfile(r'F:\学\项目\一键获取贴吧今日信息.bat')elif num=='jff':os.startfile(r'F:\学\NoteBookAndBook\log\Mylog')elif num=='wndc':os.startfile(r'F:\学\项目\[中英字幕]吴恩达机器学习系列课程_哔哩哔哩_bilibili.lnk')elif num=='7':os.startfile(r'F:\学\项目\MOS')os.startfile(r'F:\学\项目\MOS\我的快捷键系统.docx')elif num=='co':os.startfile(r'H:\普通软件\网易云音乐\CloudMusic\cloudmusic.exe')elif num==' co':os.system('%s%s' % ("taskkill /F /IM ",'cloudmusic.exe'))elif num=='bj':os.startfile(r'H:\普通软件\BcutBilibili\BCUT.exe')elif num==' bj':os.system('%s%s' % ("taskkill /F /IM ",'BCUT.exe'))elif num=='tgsq':os.startfile(r'F:\学\项目\听歌识曲.lnk')elif num=='zy':os.startfile(r'F:\学\项目\庄自在的个人空间_哔哩哔哩_bilibili.lnk')elif num=='js':os.startfile(r'F:\学\NoteBookAndBook\log\Mylog')os.startfile(r'F:\学\NoteBookAndBook\log\Mylog\MyLog.xls')elif num=='wisdom':os.startfile(r'F:\学\NoteBookAndBook\语文积累.md')elif num=='rwl':os.startfile(r'G:\Program Files\WindowsApps\28017CharlesMilette.TranslucentTB_2021.5.0.0_x64__v826wp6bftszj\TranslucentTB.exe')elif num==' rwl':os.system('%s%s' % ("taskkill /F /IM ",'TranslucentTB.exe'))elif num=='yjjb':os.startfile(r'F:\学\项目\一键举报不良网站.bat')elif num=='0':os.system('python add_paragraph_without_open_word.py')input()elif num=='addwpy':os.startfile(r'F:\学\项目\MOS2.0\add_paragraph_without_open_word.py')elif num=='yw':os.startfile(r'F:\学\NoteBookAndBook\log\起心动念规律.docx')num=input('Please input shortcut key:')elif num=='love':os.startfile(r'F:\学\NoteBookAndBook\log\爱.docx')elif num=='formatpy':os.startfile(r'F:\学\postGraduate\mathematicsForMachineLearning\python爬虫\Chapter0_处理WordExcel\2.处理带图片的word\2.3整理带图片的word中的文本.py')elif num=='wndh':os.startfile(r'F:\学\项目\吴恩达机器学习系列课后作业-02逻辑回归_哔哩哔哩_bilibili.lnk')elif num=='paint':os.startfile(r'G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Paint.lnk')elif num==' paint':os.system('%s%s' % ("taskkill /F /IM ",'mspaint.exe'))elif num=='cpql':os.startfile(r'G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Disk Cleanup.lnk')elif num=='rwjh':os.startfile(r'G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Task Scheduler.lnk')elif num=='service':os.startfile(r'G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\services.lnk')elif num=='jsb':os.startfile(r'F:\学\项目\一键获取贴吧今日信息.bat')# os.system(r'F: && cd F:\学\postGraduate\mathematicsForMachineLearning\python爬虫\项目\1、爬取贴吧内容存入CSV && python 爬取贴吧内容并存到CSV中.py')elif num=='jhrw':os.startfile(r'G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\Task Scheduler.lnk')elif num=='dwp':os.startfile(r'H:\Program Files (x86)\Tencent\DeskGo\3.1.1438.127\DeskWallPaper.exe')elif num==' dwp':os.system('%s%s' % ("taskkill /F /IM ",'DeskWallPaper.exe'))elif num=='ds':os.startfile(r'H:\Program Files (x86)\Tencent\DeskGo\3.1.1438.127\DesktopSearch64.exe')elif num==' ds':os.system('%s%s' % ("taskkill /F /IM ",'DesktopSearch64.exe'))elif num=='fqsj':os.startfile(r'H:\Programmer_Software\Pomodoro\Pomodoro.exe')elif num==' fqsj':os.system('%s%s' % ("taskkill /F /IM ",'Pomodoro.exe'))elif num=='typora':os.startfile(r'H:\Programmer_Software\Typora\Typora.exe')elif num==' typora':os.system('%s%s' % ("taskkill /F /IM ",'Typora.exe'))elif num=='latex':os.startfile(r'F:\学\项目\网页快捷方式\在线LaTeX公式编辑器-编辑器.lnk')elif num=='fanchang':os.startfile(r'F:\学\项目\网页快捷方式\弹唱|秋刀鱼的滋味^ω^《七里香》-周杰伦(Cover).lnk')elif num=='piano':os.startfile(r'F:\学\项目\网页快捷方式\在线钢琴模拟器 - 全键盘模拟钢琴 - 网页上弹钢琴 - 钢琴在线玩.lnk')elif num=='mlh':os.startfile(r'F:\学\NoteBookAndBook\吴恩达机器学习课后作业编程.docx')elif num=='zut':os.startfile(r'F:\学\项目\网页快捷方式\中原工学院.lnk')elif num=='charles':os.startfile(r'H:\Programmer_Software\Charles\Charles.exe')elif num==' charles':os.system('%s%s' % ("taskkill /F /IM ",'Charles.exe'))elif num=='boss':os.startfile(r'F:\学\项目\网页快捷方式\BOSS直聘-找工作我要跟老板谈!招聘求职找工作!.lnk')elif num=='pyv':os.startfile(r'H:\Programmer_Document\python_virtual')elif num=='pyclc':os.startfile(r'F:\学\项目\网页快捷方式\尚硅谷Python爬虫教程小白零基础速通(含python基础+爬虫案例)_哔哩哔哩_bilibili.lnk')elif num=='venv':os.startfile(r'H:\Programmer_Document\python_virtual\venv\Scripts')elif num=='ciyun':os.startfile(r'F:\学\项目\网页快捷方式\词云制作 - 微词云.lnk')elif num=='zygh':os.startfile(r'F:\学\NoteBookAndBook\职业规划\职业规划.md')elif num=='pycl':os.startfile(r'F:\学\NoteBookAndBook\爬虫')elif num=='xm':os.startfile(r'G:\Program Files\XMind\XMind.exe')elif num==' xm':os.system('%s%s' % ("taskkill /F /IM ",'XMind.exe'))elif num=='mswb':os.startfile(r'H:\Programmer_Software\MySQL_workBench\MySQLWorkbench.exe')elif num==' mswb':os.system('%s%s' % ("taskkill /F /IM ",'MySQLWorkbench.exe'))elif num=='zutb':os.startfile(r'F:\学\项目\网页快捷方式\中原工学院网上办事服务大厅.lnk')elif num=='pythonexcel':os.startfile(r'F:\学\NoteBookAndBook\python基础\python操控Excel.md')elif num=='dpp':os.startfile(r'"F:\学\项目\网页快捷方式\【720P cc字幕】数字图像处理 Guillermo Sapiro 杜克大学Image and Video Processing 第一周_哔哩哔哩_bilibili.lnk"')elif num=='gscx':os.startfile(r'F:\学\NoteBookAndBook\机器学习\笔记\公式查询.md')elif num=='sjwl':os.startfile(r'F:\学\NoteBookAndBook\机器学习\笔记\神经网络.md')elif num=='wnd3':os.startfile(r'"F:\学\项目\网页快捷方式\吴恩达机器学习ex3 python实现 - Heywhale.com.lnk"')elif num=='wndh3':os.startfile(r'F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-03多分类、神经网络前向传播_哔哩哔哩_bilibili.lnk')elif num=='wndh4':os.startfile(r'F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-04神经网络反向传播_哔哩哔哩_bilibili.lnk')elif num=='wndh5':os.startfile(r'"F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-05 偏差与方差_哔哩哔哩_bilibili.lnk"')elif num=='wndh6':os.startfile(r'"F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-06 SVM_哔哩哔哩_bilibili.lnk"')elif num=='wndh9':os.startfile(r'F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-09异常检测_哔哩哔哩_bilibili.lnk')elif num=='wndh8':os.startfile(r'F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-PCA_哔哩哔哩_bilibili.lnk')elif num=='wndh10':os.startfile(r'F:\学\项目\网页快捷方式\吴恩达机器学习系列课后作业-10推荐系统_哔哩哔哩_bilibili.lnk')elif num=='log2':os.startfile(r'F:\学\NoteBookAndBook\log\2022年2月日志.md')elif num=='ss':os.startfile(r'F:\学\项目\网页快捷方式\十四阿哥很nice的个人空间_哔哩哔哩_bilibili.lnk')elif num=='monitor':os.startfile(r'F:\学\项目\监视网页\监视Cet6和up主更新.bat')elif num=='mdz':os.startfile(r'F:\学\项目\微信朋友圈点赞提醒处理\朋友圈点赞监控.bat')elif num=='dip':os.startfile(r'F:\学\NoteBookAndBook\图像处理')elif num=='dipimg':os.startfile(r'F:\学\NoteBookAndBook\图像处理\图像处理所需图片')elif num=='dipnote':os.startfile(r'F:\学\NoteBookAndBook\图像处理\轩辕十四图像处理')elif num=='pycharm':os.startfile(r'"H:\Programmer_Software\PyCharm Community Edition 2021.2.2\bin"')elif num=='video':os.startfile(r'F:\学\其它\视频')elif num=='ad':os.startfile(r'F:\学\项目\桌面图标\阿里云盘.lnk')elif num=='water':os.startfile(r'F:\学\项目\网页快捷方式\不高兴就喝水的个人空间_哔哩哔哩_bilibili.lnk')elif num=='wegame':os.startfile(r'F:\学\项目\桌面图标\WeGame.lnk')elif num=='jkpm':os.startfile(r'F:\学\项目\监控电脑屏幕.bat')elif num=='sublime':os.startfile(r'"H:\Programmer_Software\Sublime Text"')elif num=='git':os.startfile(r'"F:\学\项目\桌面图标\Git Bash.lnk"')elif num=='mcph':os.startfile(r'F:\学\项目\网页快捷方式\PRML习题答案 - Rotopia - 博客园.lnk')elif num=='opencv':os.startfile(r'"F:\学\项目\网页快捷方式\【2021B站最好的OpenCV课程推荐】OpenCV从入门到实战 全套课程(附带课程课件资料+课件笔记)_哔哩哔哩_bilibili.lnk"')elif num=='jn':os.startfile(r'"G:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda3 (64-bit)\Jupyter Notebook (anaconda).lnk"')elif num=='adb':os.startfile(r'H:\Programmer_Software\sdk\platform-tools')elif num=='xxqg':os.startfile(r'F:\学\项目\self_study.bat')elif num=='logfile':os.startfile(r'F:\学\NoteBookAndBook\log')elif num=='log':os.startfile(r'F:\学\NoteBookAndBook\log\2022年4月日志.md')elif num=='zdh':os.startfile(r'F:\学\postGraduate\anaconda_codes\自动化')elif num=='F:\学\项目\桌面图标\电脑管家.lnk':os.startfile(r'dngj')elif num=='formatpaper':os.startfile(r'"F:\学\项目\1.0 Formatting paper.bat"')elif num=='format2':os.startfile(r'"F:\学\项目\3.0 Formatting Word image and text.bat"')elif num=='dkks':os.startfile(r'G:\Users\10167\Desktop\文件\党课考试总结(新).docx')elif num=='lyb':os.startfile(r'G:\Users\10167\Desktop\文件\大作业\数字图像处理大作业\数字图像处理课程考试要求.docx')elif num=='zkl':os.startfile(r'F:\学\NoteBookAndBook\自控力.md')elif num=='bili':os.startfile(r'G:\Users\10167\Desktop\文件\哔哩哔哩.lnk')elif num=='ql':os.startfile(r'"H:\Program Files\Tencent\QQLive\QQLive.exe"')elif num=='e3':os.startfile(r'E:\下载地址\pytorch实战')elif num=='e2':os.startfile(r'"E:\下载地址\496 - 李超-OpenCV入门到进阶:实战三大典型项目-348元~12"')elif num=='e1':os.startfile(r'"E:\下载地址\298 - 会写代码的好厨师-深度学习之目标检测常用算法原理+实践精讲-499元【完结】"')elif num=='xmlg':os.startfile(r'F:\学\项目\项目灵感.md')elif num=='java':os.startfile(r'G:\Users\10167\Desktop\文件\【尚硅谷】Spring框架视频教程(spring5超详细源码级讲解)_哔哩哔哩_bilibili.lnk')elif num=='idea':os.startfile(r'"D:\桌面\文件\idea64.exe - 快捷方式.lnk"')elif num=='qw':os.startfile(r'D:\桌面\文件\企业微信.lnk')elif num=='lab':os.startfile(r'H:\Programmer_Software\anaconda\Scripts\jupyter-lab.exe')elif num==' lab':os.system('%s%s' % ("taskkill /F /IM ",'jupyter-lab.exe'))elif num=='wb':os.startfile(r'H:\Programmer_Software\MySQL_workBench\MySQLWorkbench.exe')elif num==' wb':os.system('%s%s' % ("taskkill /F /IM ",'MySQLWorkbench.exe'))elif num=='paper':os.startfile(r'D:\桌面\文件\论文')elif num=='jj':os.startfile(r'D:\剪辑')elif num=='xshell':os.startfile(r'"D:\桌面\文件\Xshell 7.lnk"')elif num=='vm':os.startfile(r'"D:\桌面\文件\VMware Workstation Pro.lnk"')elif num=='tly':os.startfile(r'D:\桌面\文件\TLY.lnk')elif num=='todesk':os.startfile(r'D:\桌面\文件\ToDesk.lnk')elif num=='pc':os.startfile(r'"D:\桌面\文件\PyCharm 2022.2.2.lnk"')elif num=='dd':os.startfile(r'D:\桌面\文件\icons\DingTalk.lnk')elif num=='zw':os.startfile(r'D:\桌面\文件\icons\知网研学(原E-Study).lnk')elif num=='hr':os.startfile(r'"D:\桌面\文件\Huorong Internet Security.lnk"')elif num=='clash':os.startfile(r'"D:\桌面\文件\icons\Clash for Windows.lnk"')elif num=='qm':os.startfile(r'D:\桌面\文件\icons\QQ音乐.lnk')elif num=='edge':os.startfile(r'"D:\桌面\文件\icons\Microsoft Edge.lnk"')elif num=='jl':os.startfile(r'D:\下载\简历')elif num=='wt':os.startfile(r'D:\桌面\文件\维棠FLV视频下载软件.lnk')elif num=='lw':os.startfile(r'D:\桌面\论文\第二篇论文')elif num=='fq':os.startfile(r'D:\桌面\文件\icons\CuteCloud.lnk')elif num=='vs':os.startfile(r'"D:\桌面\文件\icons\Visual Studio Code.lnk"')elif num=='stc':os.startfile(r'D:\桌面\文件\icons\stcai-isp-v6.94E.exe.lnk')