Introduction to Python zero Basics - 13 - list in Python

What is a list List is a very important data type in Python. Why is it so important? Because in our actual development process, list is a data structure that is often used. It is widely used because it takes up less space and wastes less memory space. A list is a queueIt is not only a collection of various data, but also a data structureA ...

Posted by dickey on Thu, 24 Feb 2022 00:05:31 +0100

C language array

1. Creation and initialization of one-dimensional array   1.1 creation of array type_t arr_name [const_n]; //type_t is the element type of the index group //const_n is a constant expression that specifies the size of the array //Code 1 int arr1[10]; //Code 2 int count = 10; int arr2[count];//Try to avoid the array length as variable (vari ...

Posted by yakabod on Wed, 23 Feb 2022 17:14:46 +0100

C + + smart pointer

Smart pointer Why do I need smart pointers Problems with bare pointers Bare pointer is a common pointer defined normally. It has many problems, mainly the following: 1. It is difficult to distinguish whether it points to a single object or an array; 2. After using the pointer, it is impossible to judge whether the pointer should be destroy ...

Posted by Nexy on Wed, 23 Feb 2022 16:30:13 +0100

With so much knowledge of java, how to learn it well---- Remember the role, find the core category, breakthrough, see the name and know the meaning

✿ let's take learning introspection mechanism and reflection as an example 1. Learn new knowledge points - remember the function (first understand what it is, what is the connection and function with the previous knowledge points) (1) What is reflection first? [briefly understand and compare the official description] Simple understanding: r ...

Posted by mpiaser on Wed, 23 Feb 2022 15:37:43 +0100

Session management and generation of verification code

session management Cookie introduction https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Cookies HTTP Cookie (also known as Web Cookie or browser cookie) is a small piece of data sent by the server to the user's browser and saved locally. It will be carried and sent to the server the next time the browser sends a request to the same ...

Posted by Danosaur on Wed, 23 Feb 2022 15:20:31 +0100

Single architecture project development: JSON and Ajax

1,JSON 1.1 JSON description JSON(JavaScript Object Notation) JavaScript object notation (JSON comes from JS).JSON features: JSON is a lightweight data exchange format.JSON adopts a text format that is completely independent of the language, which means that the JSON data of different programming languages are consistent.JSON is easy fo ...

Posted by reeksy on Wed, 23 Feb 2022 15:15:41 +0100

Java knowledge point 03 - object oriented 02 (wrapper class, final keyword, abstract class, interface, internal class, Lambda, enumeration class, functional interface, Stream API)

Statement: The information comes from your own arrangement.Reference book crazy Java handout (Fifth Edition) Li Gang © Write 1, Packaging 1.1 general    Java provides two type systems: basic type and reference type. Using basic type is efficient. However, in many cases, objects will be created for use, because objec ...

Posted by Addos on Wed, 23 Feb 2022 14:31:34 +0100

Day 23 IO flow

IO: refers to the flow of data transfer between devices Classification by flow direction: Input stream Output stream Classification by data type: Byte stream A: Byte input stream FileInputStream: FileInputStream fis = new FileInputStream("file name of read data"); Byte buffered input stream: BufferedInputStream Bufferedinput ...

Posted by guiltyspark on Wed, 23 Feb 2022 13:39:05 +0100

Prometheus monitoring system + Grafana visualization tool construction

catalogue 1, Introduction to Prometheus monitoring 2, Introduction to Grafana visual monitoring 3, Prometheus monitoring server (default port: 9090) 4, Prometheus monitored node_exporter (default port 9100) 5, Prometheus monitoring Alertmanager (default port 9093) Vi MySQL monitored by Prometheus (default port 9104) VII Redis monitored b ...

Posted by Malcina on Wed, 23 Feb 2022 13:16:23 +0100

day8 dictionary summary and homework

day8 dictionary I Cognitive dictionary Dictionary and list selection: When you need to save multiple data at the same time, use the list if the meaning of multiple data is the same (there is no need to distinguish); If multiple data have different meanings, use a dictionary Cognitive Dictionary (dict) """ 1) Is a container data type; take{ ...

Posted by sangamon on Wed, 23 Feb 2022 12:49:00 +0100