day6 list job

1. Basic questions Given a list of numbers, print all odd numbers in the list list1=[22,33,45,67,78] for x in list1: if x%2 !=0: print(x) Given a list of numbers, print all the numbers in the list that can be divided by 3 but cannot be divided by 2 list2=[2,3,6,8,9,10] for x in list2: if x%3==0 and x%2 !=0: print(x) ...

Posted by asherinho on Tue, 22 Feb 2022 13:46:02 +0100

Spring xml tag attribute day02

4)IoC configuration (XML format) 4.1)bean Name: bean Type: Label Attribution: beans tag Function: define resources in spring. Resources defined by this tag will be controlled by spring Format: <beans> <bean /> </beans> Basic properties: <bean id="beanId" name="beanName1,beanName2" class="ClassName"></bean&gt ...

Posted by p-co on Tue, 22 Feb 2022 13:45:30 +0100

RabbitMQ learning notes

1 what is MQ MQ (message queue): translated into message queue. Through the typical producer and consumer model, producers constantly produce messages to the message queue, and consumers constantly get messages from the queue. Because the production and consumption of messages are asynchronous, and only care about the sending and receiving of ...

Posted by tekkenlord on Tue, 22 Feb 2022 13:39:53 +0100

The most useless program in history -- self writing equilibrium chemical equation

preface A few days ago, I accidentally saw such a bce library that can balance the coefficients of chemical equations. I thought this was the matching element. I tried according to the examples I saw, and the results The program design is becoming more and more complex, and I don't know his BCE console Exe how can a program of only 104K ...

Posted by abushahin on Tue, 22 Feb 2022 13:30:00 +0100

Spring -- permission restriction of Security framework

preface Last blog The Security framework imposes restrictions on requests In, login authentication is added for some requests. As long as the login is successful, you can access the restricted requests. However, this model is certainly not enough. For example: Taobao product page. Merchants can modify commodity prices, but custo ...

Posted by nosmasu on Tue, 22 Feb 2022 13:05:49 +0100

Vue learning notes (components, animation)

catalogue 1, Define Vue components 1.1 three methods of global component definition 1.2 using component to define private components II. data in components III. component switching 4, Component value transfer 4.1 value transfer from parent component to child component 4.2 the child component passes the value to the parent component th ...

Posted by cirko on Tue, 22 Feb 2022 12:51:58 +0100

Java crazy handout reading and learning java IO stream File class learning and Practice

java handout reading and learning File class Near the beginning of school, facing the pressure of postgraduate entrance examination and learning, we can relearn the core knowledge in java io stream through java handout books to form our own system. On a deeper level, the time for later study is increasingly reduced and tense. Through reading a ...

Posted by slak on Tue, 22 Feb 2022 12:39:14 +0100

[programming help] use of Python basic syntax and example demonstration

1. Notes 1.1 notes - single line notes    ① "#" is a single line annotation, and the Python interpreter will ignore the input after #, and will not execute it.    ② # can be placed on the top and right of the code.    ③ long press the left mouse button to select a single line or multiple lines of ...

Posted by siesmith on Tue, 22 Feb 2022 12:32:23 +0100

Binary tree and its traversal method + code

1. Tree structure and basic concepts 1.1 tree structure concept Tree is a nonlinear data structure. It is a set with hierarchical relationship composed of n (n > = 0) finite nodes. It is called a tree because it looks like an upside down tree, that is, it has its roots up and its leaves down. Characteristics of tree structure Subtree ...

Posted by exoduses on Tue, 22 Feb 2022 12:27:22 +0100

Python visualization and matplotlib drawing simple charts

1, Data visualization 1. What is data visualization Data visualization is a scientific and technological research on the visual expression of data. Among them, the visual representation of this data is defined as a kind of information extracted in a summary form, including various attributes and variables of the corresponding information unit ...

Posted by aztec on Tue, 22 Feb 2022 12:25:01 +0100