-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstartup boost
More file actions
37 lines (33 loc) · 1.87 KB
/
startup boost
File metadata and controls
37 lines (33 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This can help you open the files related to the job you predefined while startup the computer, change the todolist to what you want
# change the file address to the one you're used.
# If you are using windows, press windows+R -> type: "shell:startup" -> paste the shortcup of this file (be sure you use Python as the default one to open the file)
# 簡單的小程式,幫助我這個都捨不得關機的人可以輕鬆關機,不用擔心下次啟動又要把想要的檔案或是網址再開起來一次
import os
import webbrowser
todolist = ["Learn from Chang python","English Learning","Application"]
todoliste = dict(enumerate(todolist,1))
todolistekey = list(todoliste.keys())
stodoliestekey=[str(e) for e in todolistekey]
print('What do you have in mind?\nPlease choose from the following : \n',todoliste)
opensth = "1"
while (opensth) in stodoliestekey:
opensth = (input("Press number to enter the activity you would like to do and press any key excecpt for legal number to leave\n"))
if (opensth) == "1":
os.startfile("D:\\Learning Material (excel job eng)\\python\\pyt332r")
firefox = webbrowser.Mozilla("C:\\Program Files\\Mozilla Firefox\\firefox.exe")
firefox.open("http://homepage.ntu.edu.tw/~jfanc/...")
webbrowser.open("https://docs.google.com/document/d/...#")
webbrowser.open("https://colab.research.google.com/drive/...")
print("open ",todoliste[int(opensth)] )
elif (opensth) == "2":
webbrowser.open("https://docs.google.com/document/d/...")
webbrowser.open("https://docs.google.com/document/d/...")
webbrowser.open("https://docs.google.com/document/d/...")
print("open ",todoliste[int(opensth)] )
elif opensth =="3":
os.startfile("C:\\Users\\[user name]\\Desktop\\XX")
os.startfile("C:\\Users\\[user name]\\Desktop\\XX\\OO.xlsx")
print("open ",todoliste[int(opensth)] )
else:
print("Exit. Have a good day4:D ")
break