Java two list data are merged according to a certain field

Previously, I met a requirement that the field is hourly (2018101208). Then the service gave me less data. Then I need to figure it out myself. Then fill in the data without those hours. It also involves that the data list designed by ourselves is comprehensive. All hours. Then get the server list and compare it according to th ...

Posted by electrix on Mon, 16 Dec 2019 13:56:02 -0800

Android based intent data transmission

Step 1: LoginActivity.xml The interface is relatively simple, so there is no need to paste the content here, and the renderings are pasted here.   2.LoginActivity.java The logic processing code is as follows: public class LoginActivity extends AppCompatActivity { private EditText et_username; private EditText ...

Posted by harnacks on Mon, 16 Dec 2019 12:21:24 -0800

The use of Navicat software and pymysql

I. installation and use of navicate download Baidu searches navicate directly, as shown below Connect to database New database and new table Select and right-click modeling Using navicate to query practice --Query the names of all courses and the corresponding teachers -- SELECT -- course.cname, -- teacher.tname -- FROM ...

Posted by wiseass on Mon, 16 Dec 2019 06:16:49 -0800

Using six methods of Python: given a positive integer of no more than 5 bits, judge how many bits there are

Method 1: comparison a=int(input(">>>>")) if a<10: print(1) elif a<100: #The first condition has been filtered to be greater than 9, so the range here is 11 to 100 print(2) elif a<1000: print(3) elif a<10000: print(4) else: print(5) Method 2: use integer division. If it is a 0 or not a 0 ...

Posted by c4onastick on Mon, 16 Dec 2019 06:05:54 -0800

One way linked list with Python

Written in front Recently, I was looking at the data structure. I found that only these things can make me understand the data types in python more deeply. In fact, no matter how the language changes, the data structure and algorithm are immutable. These things can be learned quickly by learning some other languages. I may have ...

Posted by sahammondsr on Sun, 15 Dec 2019 08:33:28 -0800

DjangoRestFramework Learn Two of Serialization Components, View Components

A serialized component First let's create some api interfaces according to the restful specification. Write as follows: Courses --- GET ---> View Data ---> Return to all data lists [{}, {},] Courses---POST--->Add Data--->Return Added Data{} Courses/1 - PUT--->Update pk=1 data--->Return updated data{} Courses/1 --- DELETE ---&g ...

Posted by phil88 on Sat, 14 Dec 2019 19:42:07 -0800

Introduction to web ABCD day09 ABCD jquery

Introduction to jQuery brief introduction jQuery is a cross browser, fast and concise JavaScript framework The purpose of jQuery design is "write Less, Do More", that is, to advocate writing less code and doing more things jQuery encapsulates common JavaScript function codes, provides a simple JavaScript Design p ...

Posted by Celauran on Sat, 14 Dec 2019 13:19:13 -0800

A strange memcpy problem

When you see this title, you must be thinking about the bug s caused by memory overlap. I admit that you are right, but not all of them. If you are interested in this, you can continue to look down, and you will surely get something. First of all, I will briefly introduce the background. Recently, there is a strange problem in the company's pr ...

Posted by cordex on Sat, 14 Dec 2019 11:41:16 -0800

[Algorithmic Daily] K sets of inverted chains

K sets of flip chains Title Source: LeetCodeLinks: https://leetcode-cn.com/problems/reverse-nodes-in-k-group Give you a list of links that are flipped in groups of k nodes. Please return to the flipped list. k is a positive integer whose value is less than or equal to the length of the chain table. If the total number of nodes is not an intege ...

Posted by misfits on Sat, 14 Dec 2019 00:22:24 -0800

Data flow scheme of transforming old project with dva

Preface Recently, I had some trouble transferring my scaffolding project to TypeScript. Before the project, the system of react + react Redux + Redux thunk + Redux actions + Redux promise was adopted. When a project is converted to TypeScript, react and react Redux are perfect conversions. Redux actions transformation is also initially complete ...

Posted by TonyB on Fri, 13 Dec 2019 04:46:57 -0800