day23 02 combination (continue the dog fight game)
day23 02 combination (continue the dog fight game)
Three characteristics of object-oriented: inheritance polymorphism encapsulation
Let's talk about the combination
Combination: the property value of one object is the object of another class: object, property and property (generally there are two points)
Continue to expand the little game o ...
Posted by jfdutcher on Sat, 09 Nov 2019 09:24:41 -0800
Query and statistical operation of tables
Query and statistical operation of tables
I. data query
1. Requirements: find out the highest score information
Statement Description: Linq uses group
By group query the user's highest score information by user ID, group syntax: group tbAchievement
by tbAchievement.UserID into tbStudent indicates that tbAchievement is ...
Posted by eshban on Sat, 09 Nov 2019 09:09:55 -0800
vue parent child component and ref
Pass value from parent component to child component
<div id="app">
<! -- when a parent component references a child component, the data that needs to be passed to the child component can be passed to the internal of the child component in the form of attribute binding through the form of attribute binding (v-bind:), which is used ...
Posted by hannnndy on Sat, 09 Nov 2019 07:52:36 -0800
The second week of linux foundation
linux distribution system directory naming rules
Use root file system structure and FHS hierarchy. linux system is strictly case sensitive, and the system directory inherits this feature.
"/: root directory, the highest level directory of all directories
/ bin: the basic command storage directory available to all users
/ sbin: only the ...
Posted by djremiasz on Sat, 09 Nov 2019 03:50:21 -0800
python base (21): exception handling
1. Exceptions and Errors
1.1 Error
There are inevitably errors in the program, and there are two types of errors
1.1.1 Syntax Error
Syntax error: This kind of error can not pass the python interpreter's grammar detection at all and must be corrected before the program is executed.
#Syntax Error Example 1
if
#Grammar Error Example 2
def test:
...
Posted by aviavi on Fri, 08 Nov 2019 21:43:42 -0800
axios interceptor + default parameter configuration + custom header settings + unified error handling
axios interceptor + default parameter configuration + custom header settings + unified error handling
This configuration file can fulfill simple project requirements, and the specific configuration depends on the project. It mainly includes:
axios interceptor
Default parameter configuration
Custom header settings
Un ...
Posted by mie on Fri, 08 Nov 2019 12:21:09 -0800
Example of day23 03 combination
Example of day23 03 combination
I. use the combination method to write a circle and calculate its perimeter and area
1 from math import pi # Import from built-in functions pi
2 # Define a circle class first
3 class Circle:
4 def __init__(self,r): # Initialization and self The property of a circle is radius
5 self.r = ...
Posted by bing_crosby on Fri, 08 Nov 2019 11:42:42 -0800
Talk about the nodes sniffer of Elasticsearch
order
This paper mainly studies the nodes sniffer of elastic search
NodesSniffer
elasticsearch-7.0.1/client/sniffer/src/main/java/org/elasticsearch/client/sniff/NodesSniffer.java
/**
* Responsible for sniffing the http hosts
*/
public interface NodesSniffer {
/**
* Returns the sniffed Elasticsearch nodes.
*/
List<Node> ...
Posted by dserf on Fri, 08 Nov 2019 11:34:23 -0800
0-1 knapsack backtracking algorithm [suitable for beginners, with analysis + Notes]
0-1 knapsack backtracking algorithm [suitable for Xiaobai, with analysis + annotation]
Title: using backtracking algorithm to realize 0-1 knapsack, the volume of knapsack is 7
Pack 4 items, the value of which is 9,10,7,4 respectively, and the weight of which is 3,5,2,1 respectively. Please use the backtracking method ...
Posted by phileplanet on Fri, 08 Nov 2019 09:23:35 -0800
Deconstruction and assignment of variables in ES6 learning 2
ES6 can extract values from arrays and objects, and then assign values to variables. Classification of deconstruction assignment: array deconstruction assignment, object deconstruction assignment, string deconstruction assignment, numerical deconstruction assignment, Boolean value deconstruction assignment, function parameter deconstruction ass ...
Posted by abhi_elementx on Fri, 08 Nov 2019 06:36:36 -0800