Found a python debugging artifact: PySnooper
PySnooper - don't use print for debugging anymore
Although breakpoints and other debugging methods are powerful, they are cumbersome to set. For this reason, print has become the favorite of many people.
PySnooper allows you to do print, but you don't need to add many statements. You just need to add a decorator to get the runni ...
Posted by evildarren on Thu, 21 Nov 2019 13:19:14 -0800
The use of Pyyaml module in Python
I. what is YAML
YAML is a special language for writing configuration files, which is far more convenient than JSON format.
The design goal of YAML is to facilitate human reading and writing.
YAML is a lighter file format than XML and JSON, and it's simpler and more powerful. It can express structure through indentation. Does it sound like a ...
Posted by agnalleo on Wed, 20 Nov 2019 04:46:16 -0800
CentOS7.6 enable Ceph nautilus's dashboard failure handling
[TOC]
1. Environmental description
Software
Edition
operating system
CentOS7.6
ceph
nautilus, v14.2.4
The nautilus version of CEPH deploy is installed the same as the luminous version. Please refer to my previous article:https://blog.51cto.com/ygqygq2/2161917
2. Failed to enable ceph dashboard
There is an error when the mgr module tu ...
Posted by dougp23 on Fri, 15 Nov 2019 09:49:29 -0800
Python visual artifact used by Yellowbrick
Preface
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: cold city of Yishui
PS: if you need Python learning materials, you can click the lin ...
Posted by grimz on Thu, 14 Nov 2019 23:41:00 -0800
Evaluating SLAM trajectory with evo tool
evo github address: https://github.com/MichaelGrupp/evo
Track files of different formats and mutual conversion: https://github.com/MichaelGrupp/evo/wiki/Formats
Summary of questions: https://github.com/MichaelGrupp/evo/issues?q=is%3Aissue+is%3Aclosed
1. Install evo
sudo apt install python-pip
pip install evo --upgrade --no-bina ...
Posted by Belleanme on Sat, 09 Nov 2019 07:53:57 -0800
pip installation module uses domestic image source to accelerate installation
Today, when installing the Python module matplotlib, the installation is not successful. The prompt "socket.timeout: The read operation timed out" or "Read timed out" is always displayed
Because of the high latency of domestic network access to foreign countries, the installation of the module is very slow, and it must not b ...
Posted by keveen on Wed, 06 Nov 2019 15:10:13 -0800
Data visualization: matplotlib
1. Introduction to Matplotlib
Matplotlib is a Python 2D drawing library that can generate publication quality data in various hard copy formats and cross platform interactive environments. Matplotlib can be used for Python scripts, Python and IPython shell s, Jupyter notebooks, Web application servers, and four GUI toolkits.
2. matplotlib inst ...
Posted by Fataqui on Sat, 02 Nov 2019 07:32:39 -0700
Python helps you design your personal signature
As long as you leave school, the chances of writing are very few, but the chances of signing are very many. If you can't write well, but you can sign a good name, it's also a good choice.
Basic environment configuration
Version: Python 3.6
Modules: tkinter, PIL, requests
tkinter is a built-in mo ...
Posted by mady on Thu, 31 Oct 2019 04:59:52 -0700
Use of Fabric management components
Fabric's official website:
http://www.fabfile.org
Help documents:
https://fabric-chs.readthedocs.io/zh_CN/chs/tutorial.html
Fabric installation
yum install -y make gcc gcc++ python-devel python-pip
$ pip install fabric==1.14.0
//perhaps
$ pip3 install fabric2 (No, fabric.api Module)
Verify installation
python
>>> import fabric
//pe ...
Posted by gandelf1000 on Thu, 31 Oct 2019 04:44:23 -0700
Redis and Python interaction
Driving module
redis Module is used to drive Redis database in Python environment
Can be installed directly in pip mode
pip install redis
Or download domestic image:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
Create connection
import redis
con = redis.Redis(
host="localhost",
port="6379",
password="12345 ...
Posted by kulikedat on Thu, 31 Oct 2019 02:32:02 -0700