1. matplotlib Drawing Library
1.1 What is matplotlib
matplotlib is a Python 2D drawing library that generates publication-quality graphics in a variety of hard-copy formats and in a cross-platform interactive environment.Is the most popular Python underlying drawing library, mainly for data visualization charts, named after MATLAB, built to mim ...
Posted on Fri, 03 Apr 2020 15:13:13 -0400 by pumaf1
Summarize common knowledge points
s = "dfdfffffggg"
ss = s.replace("d", "rrr",1)
print s, ss #dfdfffffggg rrrfdfffffggg
#old: what you want to replace, new what you want to replace,number Number of times;
replace Copy the new object first, and then operate the new copied object. The o ...
Posted on Wed, 01 Apr 2020 13:12:23 -0400 by PJSheltrum
Source of requirement: after the ideal code review, the team needs the Log on the SVN. When it is manually copied, the format is not neat, it needs to manually typeset by itself, and so on. It also needs to deal with many SVN paths. It is difficult to filter according to the date. If you want to make an automated foot tool, you ...
Posted on Mon, 30 Mar 2020 17:29:46 -0400 by Cheeseweasel
1. Install gunicorn/flask
pip install gunicorn flask
2. Write a simple example
from flask import Flask
app = Flask(__name__)
return "This is sample for nginx+gunicorn+flask!"
if __name__ == '__main__':
3. Run the wsgi server gunicorn
The default port is 8000. gunicorn serv ...
Posted on Mon, 30 Mar 2020 13:23:06 -0400 by g00bster
To use python crawler to crawl pictures, first install python
Refer to: Installation and version detection of python under Windows
2. IDE installation
PyCharm is a Python IDE, with a set of tools that can help users improve their efficiency when using Python language development, such as debuggin ...
Posted on Fri, 27 Mar 2020 05:03:15 -0400 by fantasticham
There are three main types of GUI libraries: tkinter, wxPython and PyQt5. The following are mainly instructions for wxPython.
The following operations are performed on win10 + pycharm
Installation of wxPython:
pip install wxPython
There are also two dependency packages installed: six and pilot
Easy to use:
The variable app is our program. ...
Posted on Thu, 26 Mar 2020 06:58:51 -0400 by sspoke
This article refers to the original- http://bjbsair.com/2020-03-25/tech-info/6300/
**Write in front
Today's tutorial is bag of tricks for efficient text classification based on FAIR . This is what we often call fastText.
The most gratifying part of this paper is the fasttext toolkit. The code quality of this toolkit is very high. The re ...
Posted on Wed, 25 Mar 2020 21:11:14 -0400 by littlegreenman
Source: address of Jianshu Long live Frank Address of Jianshu
PYQT5 (I) MAIN.PY standard start
1 import sys
2 from PyQt5.QtWidgets import QApplication
4 from lib.main_window import main_window
6 if __name__=='__main__':
7 app = QApplication(sys.argv)
PYQT5(2) solve the problem of sub ...
Posted on Mon, 23 Mar 2020 03:16:09 -0400 by dud3r
1. Installation and preliminary use
1. Install PyOpenGL
Systems that already have python installed will automatically install pip, so you can install opengl with just one PIP command, as follows:
pip install PyOpenGL PyOpenGL_accelerate
2. Installation error
Find the appropriate version to download at this address: https://www.lfd.u ...
Posted on Mon, 16 Mar 2020 13:28:45 -0400 by Saeven
There is a requirement to transmit 10 photos from the front end, and then compress them into a compressed package to transmit and output through the network after the back end is processed. I didn't touch the Java compressed file before, so I went online to find an example and changed it. I can use i ...
Posted on Mon, 16 Mar 2020 07:28:40 -0400 by t.bo