Django template Language-2: simple_tag and filter

Simple tab: Label: use {%%} tags in HTML Common system tags: load, for, if, with, csrf_token, verbatim, Block endblock \ extends \ comment endcomment \ cycle (silent) \ custom label     1,with: Assign values to variables in html {% with name=obj.group.name%}        #For long variable assignment {{name}}                           #Call IP dir ...

Added by hypertech on Wed, 16 Oct 2019 11:14:16 +0300

[play Python] create an intelligent voice alarm clock for girlfriend

Before reading this article, you should be at least a program ape that can install the operating system. You should know Linux, Python, and most importantly, you should have a girlfriend. Of course, it doesn't matter. After reading this article, you try to make such an alarm clock. Maybe... Software and hardware list Card reader and SD card ...

Added by kr3m3r on Wed, 16 Oct 2019 10:42:58 +0300

python-Arduino serial port transfers data to computer and saves it to excel table

Cause: the school canal cup reported a project to make a weather forecast device. I ran BME280 module with arduino, and realized two Arduino master-slave transmission with Bluetooth module. But in order to analyze, we need to extract data. So I wrote a PC program with python, realized the serial communication between arduiho and computer with p ...

Added by adige on Mon, 14 Oct 2019 19:50:21 +0300

Build python dual version environment under centos

Catalog Build python dual version environment under centos I. Installation of Python 3 1. Clear up the location of python 2. Update related packages for downloading and compiling Python 3 3. Installation of pip 4. Installing wget with pip 5. Download the source package of Python 3 with wget ...

Added by deffe on Mon, 14 Oct 2019 10:40:07 +0300

python web Framework Flask-Dynamic Renewal of Graphic Verification Code and Verification Code

The following codes are all described in their own project examples, with little relevant text, mainly in the code annotations. Self-made Graphic Verification Code The graphics verification codes mentioned here are all self-made graphics, drawn by the color of canvas, brush and brush font. It is better to encapsulate the validation code into ...

Added by thinguy on Sun, 13 Oct 2019 21:42:22 +0300

Introduction to Python Data Analysis and Practical Learning Resources

pandas is a software package of Python language. When we use Python language for machine learning programming, it is a very common basic programming library. This article is an introduction to it. pandas provides a fast, flexible and expressive data structure, which aims to make the work of "relation" or "mark" data simple ...

Added by gin on Sat, 12 Oct 2019 20:23:32 +0300

DetectionTeamUCAS - R2CNN_Faster-RCNN_Tensorflow - source code

DetectionTeamUCAS - R2CNN_Faster-RCNN_Tensorflow - source code 1. ArgumentParser #!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import os def parsing_arguments(): ...

Added by atawmic on Sat, 12 Oct 2019 20:08:57 +0300

An Example of Spring Boot Security JWT Integration for Front-end and Back-end Separated Authentication

We introduced the first two chapters. Spring Boot Security Quick Start and Spring Boot JWT Quick Start This chapter uses JWT and Spring Boot Security components as a front-end and back-end separate authentication system. The code examples in this chapter are from Spring Boot Security + JWT Hello World Example. This chapter does not use thymele ...

Added by joelg on Fri, 11 Oct 2019 19:34:03 +0300

The Practice of Python-22 [Li Gang-21 Days Customs Clearance]: Define the Function of Calculating Matrix Transposition

The Practice of Python-22 [Li Gang-21 Days Customs Clearance]: Define the Function of Calculating Matrix Transposition Method 1: Nested cyclic transposition First, create a new list with the same length as the first element of the original matrix. Each element of the original matrix is traversed (eac ...

Added by sahel on Thu, 10 Oct 2019 12:16:37 +0300

python multiprocess Lock and shared memory

Multiprocess Lock lock = multiprocessing.Lock() creates a lock lock.acquire() acquisition lock lock.release() release lock with lock: Automatic acquisition and release locks are similar to with open() as f: Characteristic: Who grabs the lock first and who executes it first. After the execution of the process is completed, other processes grab ...

Added by xylex on Thu, 10 Oct 2019 10:31:30 +0300