Notes on Python Programming: from introduction to practice

Learning notes from "Python Programming: from introduction to practice" (by Eric Matthes of the United States). Mainly for Python 3. Python uses indentation to determine the relationship between a line of code and the previous line of code. In the previous example, the lines of code that d ...

Added by cli_man on Sun, 14 Jun 2020 06:59:49 +0300

MapReduce actual case, MapTask operation mechanism, ReduceTask operation mechanism, MapReduce execution process, hadoop data compression, implementation of Join algorithm

MapReduce actual case, MapTask operation mechanism, ReduceTask operation mechanism, MapReduce execution process, hadoop data compression, implementation of Join algorithm MapReduce actual case Reverse order of upstream traffic Cell phone number division MapTask operation mechanism Operation proces ...

Added by Fergal Andrews on Sat, 13 Jun 2020 09:39:07 +0300

Basic 6.2: array expansion (2D array + multidimensional array)

Article catalog 1 \. Initialization 1.1 overall initialization 1.2 partial initialization 1.3 size 1.4 assignment 2 \. Arrays and pointers 3 \. Functions and arrays 3.1 passing arrays to functions 3.2 return array from function 4 \. Multidimensional array 4.1 statement 4.2 initialize 2D array 4. ...

Added by Ben Phelps on Sat, 13 Jun 2020 05:38:09 +0300

Using tree node cli to generate a tree

When writing a blog, you often need to show the directory structure of the project. My computer is windows, and the tree command is not very effective. If you can use Node, you can use Node! So I found several cross platform ones. namely tree-cli and tree-node-cli These two are one author. Among them, tree node cli is more suitable for Linux us ...

Added by feyd on Thu, 11 Jun 2020 06:20:57 +0300

Analysis and interpretation of the most easy to understand HashMap source code

The article has been included in Github.com/niumoo/JavaNotes , and Java programmers need to master the core knowledge. Welcome to Star and advice. Welcome to my official account , articles are updated weekly. As one of the most commonly used collection classes, HashMap needs to be understood in a simple way. This article will go deep into the ...

Added by mediabob on Thu, 11 Jun 2020 06:09:09 +0300

numpy learning notes of python 01

WeChat official account: click on blue font, small white image and visual attention. About technology, focus on yyfilence00. If there are any questions or suggestions, please official account message. Organize knowledge and learn notes Publish journal, essay, what you see and what you think 1: ...

Added by markmuir on Wed, 10 Jun 2020 07:57:14 +0300

Java implements 23 design patterns: sharing element pattern

Classification of 23 design patterns 1, Overview Definition of Flyweight pattern: using sharing technology to support reuse of a large number of fine-grained objects. It can reduce the number of objects to be created and avoid the cost of a large number of similar classes by sharing the existing o ...

Added by bronzemonkey on Wed, 10 Jun 2020 07:10:32 +0300

JS Event Processing Details

An event is an action of a user, and event handling is a function that handles that action.In this section, let's look at event handling in JS. Article Directory Three ways to add event handling Add in line Label Attribute Add Add Event Listening Focus Events Click and double click events Mouse even ...

Added by Grim... on Tue, 09 Jun 2020 19:10:37 +0300

Overview of pre -, middle -, and suffix expressions and calculator principle and code analysis of conversion + stack (including complete source code)

catalog: 1. Overview of suffixes 2. Middle order expression to suffix expression 3. Implement the principle and steps of calculator with stack suffix expression 4. Code implementation and analysis 1. Overview and mutual conversion of suffixes Prefix expression: the operator precedes the operand. ...

Added by Naithin on Sun, 07 Jun 2020 08:56:33 +0300

HashMap: Source code (constructor, put, resize, get, remove, replace)

1. Constants (1) Default table size, 1 shifts left four bits to 8 static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // aka 16 (2) Maximum table length static final int MAXIMUM_CAPACITY = 1 << 30; (3) Default load factor size: static final float DEFAULT_LOAD_FACTOR = 0.75f; (4) Tree threshold static final int TREEIFY_ ...

Added by defect on Thu, 04 Jun 2020 07:52:52 +0300