Regular Analysis and bs4 Analysis of Reptiles
Regular parsing (re module)
Single character:
...: All characters except newlines
[]: [aoe] [a-w] matches any character in the set
\ d: Number [0-9]
\ D: Non-digital
\ w: Numbers, letters, underscores, Chinese
\ W: Nonw
\ s: All blank character packages, including spaces, tabs, page breaks, an ...
Posted by steved on Tue, 06 Aug 2019 13:53:36 +0200
A Preliminary Study of pygame-Making Simple Games
Introduction to pygame
PyGame is an extension module for game writing in Python. It is a game library written by SDL library. The full name of SDL is Simple Direct Media Layer, written by a bull named Sam Lantinga. SDL is written in C, but it can also be developed using C++, of course, there are m ...
Posted by clarencek on Sun, 04 Aug 2019 15:41:52 +0200
New posture of python debug - pysnooper
In general, Pycharm is used to debug projects, but what happens when it's not convenient? Do you still use the old logger? Today, it's super convenient to find pysnooper's tool, which can type the output of every step of a function into a file.
First, you need to install it.
pip install pysnooper
Th ...
Posted by thyscorpion on Wed, 31 Jul 2019 11:22:10 +0200
Deep Learning of OpenCV Detection and Segmentation of Image Target Area
Prepare 1: OpenCV Common Picture Conversion Skills
Before computer vision model training, we often use image enhancement techniques to obtain more samples, but some methods in depth learning framework may not meet our needs for image transformation, so we still have a lot of common image processing techniques in OpenCV. Help.
Image Channel Se ...
Posted by PHP_ColdFusion on Sat, 27 Jul 2019 13:40:54 +0200
Django and xadmin build backstage management system-django development environment
Learning environment: redhat 5.8
python version: 3.6.8
django version: 1.11.20
1.python environment installation
First, open the following official web site to download the source installation package directly:https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
After downloading, upload it to the linux environment and extra ...
Posted by fabrice on Fri, 19 Jul 2019 12:32:48 +0200
DjangoRestFramework series: Serialization: Formatting python objects into json
Tutorial 1: Serialization
introduction
This tutorial will show you how to create simple Web API (restful) code with good cohesion. In the process, it will introduce the various components that make up the REST framework and give you a comprehensive understanding of how everything comes together.
E ...
Posted by hezll on Fri, 19 Jul 2019 11:34:32 +0200
Vps opens BBR acceleration (CentOS 7)
vps of vultr, bought last month, still feel slow to watch videos, so look for tutorials online, open BBR acceleration here and record it, which may be used later.
BBR is a new congestion control algorithm proposed by Google, which can significantly improve the throughput of Linux servers and reduce the delay of TCP connections.
BBR solves t ...
Posted by Spinicrus on Wed, 17 Jul 2019 21:45:31 +0200
Python Learning Requests Library
The Requests Library in python is an encapsulated python utility that requests http and returns the corresponding results
Initial Requests Library
Official Documents http://cn.python-requests.org/zh_CN/latest/
Code Address https://github.com/kennethreitz/requests
Requests Environment Preparation
Install pip https://pypi.python.org/pypi ...
Posted by BIOSTALL on Sat, 13 Jul 2019 20:12:38 +0200
Chinese Usage Help Document in Python Treelib Multi-tree Data Structure
Chinese Usage Help Document in Python Treelib Multi-tree Data Structure
Tree is an important data structure for computer programming language. It has a wide range of applications, such as hierarchical data structure of file system and some algorithms in machine learning. treelib is created here to provide efficient implementation of tree data ...
Posted by ari_aaron on Wed, 10 Jul 2019 00:22:51 +0200
Chinese version of Django-REST-framework
quick get start
Here we create a simple API for administrators to view and edit user and group information.
Project Settings
Create a new django project named tutorial and create an APP named quickstart:
# new directory
mkdir tutorial
cd tutorial
# New Virtual Environment
virtualenv env
source env/bin/activate # Windows uses `env Scripts ...
Posted by stakes on Sun, 30 Jun 2019 01:18:17 +0200