What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-14 05:39:10
reverse a number in python
# Python string/number reverser example_number = 12143 example_string = "Hello there" def reverse(thing): thing = str(thing) # convert it to a string, just in case it was a number list_of_chars = [char for char in thing] reversed_l... Add solution -
Python 2021-11-10 00:27:14
extract audio from .mp4 python .mp3
#!/usr/bin/env python3 """ video_to_mp3.py Description: Simple script to extract MP3 audio from videos using Python. Requirements: - "lame" - "ffmpeg" If the libraries are not installed j... Add solution -
Shell/Bash 2021-11-09 02:03:14
how to install pytesseract in rpi
sudo apt-get install python-distutils-extra tesseract-ocr tesseract-ocr-eng libopencv-dev libtesseract-dev libleptonica-dev python-all-dev swig libcv-dev python-opencv python-numpy python-setuptools build-essential subversion sudo apt-get install tessera... Add solution -
Python 2021-11-06 10:04:21
how to pass parameters in python script
#!/usr/bin/python import sys print 'Number of arguments:', len(sys.argv), 'arguments.' print 'Argument List:', str(sys.argv) # python scriptName.py arg1 arg2 arg3 # Output: # Number of arguments: 4 arguments. # Argument List: ['test.py', 'arg1', 'arg2'... Add solution -
Python 2021-11-05 08:03:18
run python script from typescript
var myPythonScriptPath = 'script.py'; // Use python shell var PythonShell = require('python-shell'); var pyshell = new PythonShell(myPythonScriptPath); pyshell.on('message', function (message) { // received a message sent from the Python script (a s... Add solution -
Python 2021-11-03 22:38:17
autopytoexe
# Pip install $ pip install auto-py-to-exe $ auto-py-to-exe # clone install $ git clone https://github.com/brentvollebregt/auto-py-to-exe.git $ python -m pip install -r requirements.txt $ cd auto-py-to-exe $ python setup.py install $ auto-py-to-exe Add solution