Multiple inheritance of Python 3
#In Python multi inheritance, if a subclass inherits a method with the same name in multiple parent classes, which subclass will choose when calling
class Item :
def info (self):
print("Item Method in","This is a commodity")
class Product:
def info(self):
print("Product Method in" , "This is an industrial product")
cl ...
Posted by abigail on Wed, 27 Nov 2019 11:31:08 -0800
Spring-IOC implementation [02-XML configuration file mode]
XML configuration mode
Attribute injection
Construction injection: create a parametric construction method and a nonparametric construction method
Injection in application.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XML ...
Posted by HaXoRL33T on Wed, 27 Nov 2019 07:27:12 -0800
Encapsulation of three characteristics of object-oriented
I. inherit the json module and derive new functions
Inherit the JSONEncoder in the json module and derive new functions
import json
from datetime import date, datetime
#Serializable data type takes precedence in the original json module
# print(type(datetime.now()))
#<class 'datetime.datetime'>
#json cannot change the set, class
# di ...
Posted by srdva59 on Wed, 27 Nov 2019 03:53:55 -0800
GNU link script use
The main function of link script is to describe how the section of input file is mapped to the memory layout of output file. The popular way is to compile each obj file and place it in the bin address according to which order; at the same time, associate the run-time variable symbol with VMA.
It mainly refers to the following Blogs:1. attribute ...
Posted by jcavard on Wed, 27 Nov 2019 01:54:04 -0800
Handwritten vue source-bidirectional data binding (simple implementation)
We've been asking vue about the principle of two-way data binding. Today, I'm just handwriting a two-way data binding and I'll get a better understanding of it.
Because the current vue technology is also constantly updated, now updated to 3.0, the internal method logic has also changed a lot, so as the development of us, in fact, we master the ...
Posted by kbrij on Tue, 26 Nov 2019 19:32:36 -0800
The problem of url not displaying in a tag of sending html mail
In a recent project, you need to use the mailbox activation function, but there is a problem!
Problem Description: after sending the mailbox, the href attribute of the activation link of the mailbox is missing!!!
Because I used the local address to do the test, and then replaced my href address with Baidu's link.
Later Baidu, finally in an arti ...
Posted by vishal99 on Tue, 26 Nov 2019 13:14:56 -0800
Build mysql database, and mysql common high-frequency commands -- database
Build mysql database and mysql common high-frequency commands
I. environment construction
II. Common commands
2.1 database operation
2.2 data table operation
2.3 view operation
2.4 data operation (add, delete, modify and query)
I. environment construction
This paper only builds learning in windows environment.
Downlo ...
Posted by nealios on Mon, 25 Nov 2019 14:17:48 -0800
Getting started with python crawler
The basic steps of the crawler: get the url, parse the web page and find the required content; data processing; save.
Knowledge points:
(1) generally, the url of the same type of web page has certain rules, so you need to pay attention to observation when crawling, such as scenic spots
Second pages: https://travel.qunar.com/p-cs ...
Posted by e7gaskell on Mon, 25 Nov 2019 10:59:02 -0800
jQuery source parsing style operation modules scrollLeft and scrollTop
scrollLeft and scrollTop are used to get / set scroll bars, as follows:
scrollLeft(val); read or set the horizontal scroll bar distance of the entire page
scrollTop(val); read or set the vertical scroll bar distance of the entire page
If no value of val is passed in, the scroll bar distance will be obtained. If val is set, the scroll bar dist ...
Posted by mark123 on Mon, 25 Nov 2019 07:07:24 -0800
Vue.js virtual dom and diff algorithm
Vue.js virtual dom and diff algorithm
What is virtual dom?
Virtual DOM is also called vdom. In fact, it uses the Object model of js Object to simulate the real DOM, so its structure is a tree structure; vdom will render once as soon as it is created
Take a look at the code
//Initial virtual dom structure
var vdom = {
vn ...
Posted by tigomark on Sun, 24 Nov 2019 09:34:36 -0800