Thinking in Java - Operator

3. Operator 3.1 Static Import Static import: Method calls static methods in other classes of static import <! - Classes and static methods - > package com.one; public class Print { public static void print(String s){ System.out.println(s); } } <! - Method of testing static imports package com.one; // Static Import Metho ...

Posted by robot43298 on Thu, 25 Jul 2019 04:21:58 +0200

Use of 7-Variables

Use of variables 1. Classification of variables 1.1 Classification by data type Detailed description: // 1. Integration byte(1 byte: - 128 - 127) short (2 bytes) int(4 bytes) long(8 bytes) // In development, the commonly used integers are: int // To define long variables, you need to end with ...

Posted by alex.saidani on Sat, 20 Jul 2019 13:52:39 +0200

What is the execution of defer in golang?

In the same goroutine: What is the call stack principle for multiple defer s?How is the defer function called? To explore the mystery, I've prepared the following code: package main import "fmt" func main() { xx() } func xx() { defer aaa(100, "hello aaa") defer bbb("hello bbb") return } func aaa(x int, arg string) { fmt.Pr ...

Posted by Frozenlight777 on Thu, 18 Jul 2019 21:19:43 +0200

modeless dialog box

Dialog boxes are divided into modal and non-modal ones. Modal dialog boxes are commonly used. A new dialog box can be created in the resource file, and then DialogBox can be called in WinMain function to display the dialog box. When the modal dialog box is not closed, the main window can not be operated on, it must be closed before it can ...

Posted by suckablesausage on Tue, 16 Jul 2019 23:19:54 +0200

Chinese Usage Help Document in Python Treelib Multi-tree Data Structure

Chinese Usage Help Document in Python Treelib Multi-tree Data Structure Tree is an important data structure for computer programming language. It has a wide range of applications, such as hierarchical data structure of file system and some algorithms in machine learning. treelib is created here to provide efficient implementation of tree data ...

Posted by ari_aaron on Wed, 10 Jul 2019 00:22:51 +0200

Text Viewing and Processing Commands

Text view commands: hexdump, od, cat, tac, head, tail, more, lessText processing commands: tr, cut, wc, sort, uniq, rev, colrm, paste, diff, pathText View CommandhexdumpView the file and display it in ASCII code or hexadecimal, decimal, octal.hexdump [options] file... -b Single byte octal display -c Single byte character dis ...

Posted by snpo123 on Tue, 25 Jun 2019 20:56:15 +0200

Construction and Configuration of FTP Server under Ubuntu 14.04

First of all, I installed Ubuntu 14.04 in the virtual machine and Win10 in the physical machine. At first, the ftp server was installed in Ubuntu just for transferring files between two systems, and it can be logged in from the Windows side. Initially, it was configured according to various online tutorials. As a result, all kinds of errors th ...

Posted by rg_22uk on Sun, 23 Jun 2019 01:49:42 +0200

python Notes 5: Decorators, Built-in Functions, json

Decorator The decorator is essentially a Python function, which allows other functions to add additional functions without any code changes. The return value of the decorator is also a function object. Let's start with a simple example: def run(): time.sleep(1) print('run....') There is a new requirement that we can record the running ...

Posted by maniac1aw on Fri, 21 Jun 2019 20:25:32 +0200

ASP.NET Initialization Process Analysis 2

The previous article talked about the process from creating application domains to creating ISAPIRuntime instances. This article continues with the necessary initialization process for Asp.net to process the first request. ISAPIRuntime analysis ISAPIRuntime is implemented in System.Web.Hosting, and its ProcessRequest is our gateway for processi ...

Posted by busin3ss on Wed, 19 Jun 2019 02:53:40 +0200

Wechat applet Node.js (Basis 6) Buffer (Buffer)

Wechat applet Node.js  Buffer: JavaScript Language itself has only string data type and no binary data type.   But when dealing with streams like TCP or files, binary data must be used. Therefore, in the _____________ Node.js In this paper, a Buffer class is defined, which is used to create a special buffer for binary data.   In no ...

Posted by mysterbx on Sun, 16 Jun 2019 00:14:44 +0200