What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-23 09:50:27
how to scan directory recursively python
import os import sys rootdir = sys.argv[1] for root, subFolders, files in os.walk(rootdir): for folder in subFolders: outfileName = rootdir + "/" + folder + "/py-outfile.txt" # hardcoded path folderOut = open( ou... Add solution -
Python 2022-01-23 08:56:00
python measure volum from audio file
import os, sys, pygst pygst.require('0.10') import gst, gobject gobject.threads_init() def get_peaks(filename): global do_run pipeline_txt = ( 'filesrc location="%s" ! decodebin ! audioconvert ! ' 'audio/x-raw-int,chann... Add solution -
Python 2022-01-23 08:00:02
python windows get file modified date
# note: test.txt can also be a file path import os.path, time print("Last modified: %s" % time.ctime(os.path.getmtime("test.txt"))) print("Created: %s" % time.ctime(os.path.getctime("test.txt"))) Add solution -
Python 2022-01-22 17:30:02
how to save an image with the same name after editing in python pillow module
import os from PIL import Image PATH = "F:\\FYP DATASET\\images\\outliers Dataset\\Not Outliers\\" Copy_to_path="F:\\FYP DATASET\\images\\outliers Dataset\\" for filename in os.listdir(PATH): img = Image.open(os.path.join(PATH, f... Add solution -
Python 2022-01-22 12:27:12
how to code J.A.R.V.I.S
import pyttsx3 #pip install pyttsx3 import speech_recognition as sr #pip install speechRecognition import datetime import wikipedia #pip install wikipedia import webbrowser import os import smtplib engine = pyttsx3.init('sapi5') voices = engine.getProper... Add solution -
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5