What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-02 23:22:03
python split by newline
# Using str.splitlines() method, you can split a string by new lines # Example 1 string = "Line 1\nLine 2\nLine 3\nLine4" string = string.splitlines() print(string) # OUTPUT ['Line 1', 'Line 2', 'Line 3', 'Line4'] # Example 2 string = "&q... Add solution -
Python 2021-10-01 09:06:02
python cherrypy
# install cherrypy (basic, if path is not set yet) py -m pip install cherrypy # or set PATH to use pip: setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts" pip install cherrypy # or pip3 install cherrypy --upgrade # if "connecti... Add solution -
Python 2021-10-01 03:42:06
github python project
How to install Python package from GitHub? I want to use a new feature of httpie. This feature is in the github repo https://github.com/jkbr/httpie but not in the release on the python package index https://pypi.python.org/pypi/httpie How can I install ... Add solution -
Python 2021-09-30 17:42:04
python bottle install
# install bottle (basic, if path is not set yet) py -m pip install bottle # or set PATH to use pip: setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts" pip install bottle # or pip3 install bottle --upgrade # if "connection error... Add solution -
Python 2021-09-30 13:08:04
macos youtube-dl unable to get local issuer certificate _ssl.c:1131
# If you're using macOS go to # Macintosh HD > Applications > Python3.6 folder (or whatever version of python you're using) # > double click on "Install Certificates.command" file. :D # If you installed python using homebrew, run the ... Add solution -
Python 2021-09-29 19:45:04
hide password in python
#https://docs.python.org/3/library/base64.html >>> import base64 >>> print(base64.b64encode("password".encode("utf-8"))) cGFzc3dvcmQ= >>> print(base64.b64decode("cGFzc3dvcmQ=").decode("utf-8&... Add solution -
Shell/Bash 2021-09-27 23:19:02
install flask
# install flask (basic, if path is not set yet) py -m pip install flask # or set PATH to use pip: setx PATH "%PATH%;C:\<path\to\python\directory\>\Scripts" pip install flask # if "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] cer... Add solution -
Python 2021-09-27 21:38:04
python help
help() # If this is your first time using Python, you should definitely check out # the tutorial on the Internet at https://docs.python.org/3.8/tutorial/. # Enter the name of any module, keyword, or topic to get help on writing # Python programs and usin... Add solution