What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-18 19:06:03
python console pause
def pause(massage = 'press any key to continue'): # this function will pause the script with a default massage or a custome one. print(massage) os.system('pause >NULL') # this will pause untill any key is pressed. return 0 # example us... Add solution -
Python 2021-09-13 20:42:03
python launch file
#how to open file with the default application for that file set by the OS import os filename = "PATH_TO_FILE" # EG. "C:\Users\baguette\Downloads\image.png" os.system("open " + shlex.quote(filename)) #MacOS/X os.system(&qu... Add solution
Best helpers
Michaelyus
+5
EBA2018
+5
Eric Lewis
+5
J. Tatum
+5
Erwaman
+5
Jp_
+5
Fauve
+5
Katy Forde
+5
Jcvamp
+5
Chris
+5
Xiaotian Pei
+5