Java process control

Java process control Sequential structure 1. The basic structure of Java is a sequential structure. Unless otherwise specified, it will be executed sentence by sentence in order 2. Sequential structure is the simplest algorithm structure 3. Between statements and between boxes, it is carried out from top to bottom, which is composed of seve ...

Posted by ayzee01 on Wed, 12 Jan 2022 21:50:03 +0100

Java object oriented programming

What is object oriented? Object oriented programming (OOP)The essence of object-oriented programming is to organize code by class and data by object.Three characteristics: Encapsulation: encapsulate the data and open a small port for extraction.Inheritance: a subclass inherits everything from its parent class.Polymorphism: a method has many ...

Posted by samirk on Wed, 12 Jan 2022 20:42:05 +0100

Go language Bible - Chapter 8 Goroutines and Channels - 8.5 concurrent loops

Chapter 8 Goroutines and Channels Concurrent programs in Go language can be implemented by two means: goroutine and channel, which support sequential communication processes, or CSP for short. CSP is a concurrent programming model. In this concurrent programming model, values will be passed in different running instances. The second means is m ...

Posted by straycat on Wed, 12 Jan 2022 19:11:13 +0100

January 2022 Java Teaching Course 63-Atomicity

I. Atomicity 1.volatile-Problem Code Analysis: package com.itheima.myvolatile; public class Demo { public static void main(String[] args) { MyThread1 t1 = new MyThread1(); t1.setName("Road Classmates"); t1.start(); MyThread2 t2 = new MyThread2(); t2.setName("Xiaopi classmates"); t2. ...

Posted by 2gd-2be-2rue on Wed, 12 Jan 2022 18:10:52 +0100

Write a Python "virus"

Today's article shows a python "virus", which infects other Python files to create a back door. The back door uses Python's built-in socket module to create a listener to connect to Python's built-in sub process module to execute commands on the target. At the same time, it also establishes persistence by creating a cronjob to run the ...

Posted by Yossarian on Wed, 12 Jan 2022 13:14:43 +0100

Class and object learning notes

Today, I learned the basic concepts of classes and objects. I wrote a small program with java and my knowledge. Now I summarize the learning content. I Basic concepts of class and object. Class, that is, the abstraction of something. As far as I understand, it is to use computer code to write the category of something that needs to be abstrac ...

Posted by alex_lana on Wed, 12 Jan 2022 12:05:05 +0100

Reproducing German enigma machine in World War II with Python

Enigma comes from Greek and is interpreted in English as "a mystery, an incomprehensible thing". -- Excerpt from Ele Laboratory As we know, enigma machine is an important information encryption machine of the German army in World War II, which has many characteristics. First of all, it is an all-in-one encryption and decryption ...

Posted by Sephirangel on Wed, 12 Jan 2022 11:59:43 +0100

Python Basics - functions

function What are the functions in Python? In Python, function is a set of related statements that perform a specific task. Function helps to decompose our program into smaller modular blocks. As our plans grow, features make them more organized and manageable. In addition, it avoids duplication and makes code reusable Syntax for creating ...

Posted by joquius on Wed, 12 Jan 2022 09:06:58 +0100

#yyds these skills inventory # using Python to analyze Netease cloud song information, I found interesting rules through visual processing

preface A few days ago, my classmate Wazi asked me to help with some musical homework, homework content collection network, data volume 1W homework evaluation, and then do some work related to data analysis. Easy cloud homework has Internet bugs and solutions. If you find a big experiment, you still need to hand in the experiment report. Here ...

Posted by mkohan on Wed, 12 Jan 2022 07:13:06 +0100

clone() method in Java

Convention for clone() method The clonable interface is intended to be a mixed interface of objects, indicating that such objects allow cloning, but this interface does not define clone (). This is its defect: it cannot constrain subclasses to implement the clone () method. Object defines a protected clone () method. Cloneable does not define ...

Posted by swamp on Wed, 12 Jan 2022 05:17:46 +0100