Wechat cash red packet jump pit version

The official gives the early steps of opening the cash red envelope 1. It is worth noting that the calling IP address (public IP) needs to be configured in wechat payment merchant platform product center cash red packet product settings 2. Integrated business development thinking Official account offici ...

Posted by nevynev on Tue, 30 Jun 2020 00:04:16 -0700

[STM32] RS485 Modbus protocol collects sensor data

1, Hardware 1. Sensor: hydraulic sensor, 12vDC, RS485 data output, Modbus protocol communication2. Circuit: according to the sensor properties, the circuit is mainly composed of two parts, communication circuit and power supply (1) 485 circuit: because 485 is half duplex communication, it needs to control the transceiver, so it is simply desig ...

Posted by maxrisc on Mon, 29 Jun 2020 20:49:24 -0700

Exception capture and regular expression usage in python

Exception capture 1. What is exception capture """ The program can continue to run if there is an exception in the process of program execution. Note: you don't need to use exception capture all the time. You should use it when you know that there may be an exception in a certain place and you don' ...

Posted by rsmarsha on Mon, 29 Jun 2020 18:35:21 -0700

[Python basics] day8 -- LEGB principles of function and scope

Function (subroutine, procedures) definition: Function is to encapsulate a set of statements with a name (function name). To execute this function, you only need to call its function name effect:   Easy to reuse a part of code and reduce duplicate code Easy to modify code and expand Keep the ...

Posted by jedney on Thu, 25 Jun 2020 23:16:12 -0700

leetcode weekly summary

What I learned this week In vector, sort() sorting problem of strings (compared by alphabet in order, the first priority is higher: ABC < ACB < BCA) Sort problem in array: (sort function scope is [begin, end], excluding the last bit) Static array: int a [10] = {9, 0, 1, 2, 3, 7, 4, 5, 8, 6}; ...

Posted by textbox on Sun, 21 Jun 2020 18:17:39 -0700

Summary of common categories of a Xin, a rookie

Summary of common categories (I) Object: java.lang.Object Object:Java All classes in (custom class, class provided by jdk) inherit from object (all root classes) public int hashCode() returns the hash code value of the object (the hash code value of each object in memory is different). It has a relat ...

Posted by rel on Fri, 19 Jun 2020 22:37:43 -0700

python learning notes - common package, module introduction

Python commonly used modules are calendar time datetime timeit os shutil zip math string Theoretically, all the above modules should be imported first, and string is a special case calendar, time, datetime refer to Chinese meaning calendar Calendar related modules Import before use import calen ...

Posted by kevin7 on Thu, 04 Jun 2020 11:40:39 -0700

redis basic operation - string

1, Set the value of the specified key Commands: set Format: set key value 127.0.0.1:6379> set test_key test_value OK 2, Get the value of the specified key Command: get Format: get key 127.0.0.1:6379> get test_key "test_value" 3, For the string value stored in key, obtain the substring in the specified interval Command: ...

Posted by fatmikey on Sun, 31 May 2020 21:54:18 -0700

java explanation -- some practical methods of string

String is a class provided by the system, represented by string Here are some common methods about String for your reference: 1. Access It can be divided into two types: finding the charat in the string according to the index and finding the index of the character in the string according to the position of the character in the string publi ...

Posted by scorphus on Sat, 30 May 2020 08:39:20 -0700

Read-in and Output Optimization

By default, std::cin/std::cout is a very slow input/output mode, and scanf/printf is much faster than std::cin/std::cout. But why?Is there any way to solve the problem of slow input and output? Close Sync/Unbind std::ios::sync_with_stdio(false) This function is a "whether stdio is compatible" switch. C++ in order to be compatibl ...

Posted by geebo on Mon, 25 May 2020 18:13:00 -0700