OOP basics & OOP advanced & RE modules | Cloud computing
1. Write game characters
1.1 problems
To create a program, the requirements are as follows:
Create a game character classGame characters have names, weapons and other attributesGame characters have methods to attack and walkWeapons are realized through weapons
1.2 scheme
Because the game characters and weapons are implemented by clas ...
Added by germanjulian on Sun, 02 Jan 2022 20:02:50 +0200
03 - definition of variables
1, Definition of variables
1. What are the variables?
In one sentence: variables are used to temporarily save data, which can be changed.
2. When do I need to define variables?
If a content needs to be used multiple times and appears repeatedly in the code, the content can be represented by variables. In this way, when modifying the content ...
Added by WeddingLink on Fri, 31 Dec 2021 15:05:18 +0200
08_ awk, a text processing tool for shell programming
#Course objectives
Familiar with the command line mode and basic syntax structure of awkFamiliar with awk related internal variablesFamiliar with awk common print function printAble to match regular expressions in awk and print relevant lines
1, awk introduction
1. awk overview
awk is a programming language, which is mainly used to pro ...
Added by jboy6t9 on Tue, 28 Dec 2021 12:13:26 +0200
linux shell string operation details
String related operations are often involved in shell batch programs. There are many command statements, such as awk and sed, which can perform various string operations. In fact, a series of operation symbols are built into the shell, which can achieve similar effects. As we all know, the use of internal operation symbols will omit the time to ...
Added by webhead on Thu, 23 Dec 2021 17:39:22 +0200
shell functions and arrays
1 function
1.1 function definition
Popular speaking. Function is to gather a group of relatively independent codes to form a code block, which can complete a specific function. Essentially, a function is a mapping of a function name to a block of code. After you define a function, you can call its corresponding set of code through the functio ...
Added by knford on Sat, 18 Dec 2021 17:58:35 +0200
Shell script basics start from scratch -- the first shell script
1, Foreword
After the basic study of the previous three sections, we are finally going to enter the door of the shell. As a back-end developer, you don't have to be proficient in shell script development, but you need to master some shell programming skills. After all, shell script, as a lightweight scripting language, can help us complete ...
Added by Daniel.Conaghan1 on Thu, 16 Dec 2021 01:23:17 +0200
Shell advanced development practice mk
download: Shell advanced development practicehttp://www.97yrbl.com/t-1315.html
When ANR occurs in app or watchdog is triggered by System, the System wants to generate a trace file to record the call stack information of each thread and the status information of some processes / threads. This file is usually stored in the / data/anr director ...
Added by AlanG on Thu, 16 Dec 2021 00:00:59 +0200
Using tree to generate directory tree structure
Background introduction
Sometimes, when you finish a project, you want to show the directory structure of the project (as shown in the figure below) and give a document descriptive description of the project to explain the meaning of various directories and file representatives in the project, which is convenient for yourself and later student ...
Added by andrewburgess on Wed, 15 Dec 2021 07:40:24 +0200
5, Interaction free shell programming
5, Interaction free shell programming
1, Here Document
(1) Here Document overview
Provides a list of commands to interactive programs using I/O redirection An alternative to standard input Here Document is an alternative to standard input, which can help script developers not use temporary files to build input information, but directly ...
Added by michaelphipps on Tue, 07 Dec 2021 10:07:58 +0200
Three common ways to call Shell scripts through Python
How to call Shell scripts through Python
This paper introduces three writing methods
Use os.system to runUse subprocess.run to runUse subprocess.Popen to run
Advantages and disadvantages of the three methods
os.systemsubprocess.runsubprocess.PopenNeed to resolve parametersnoyesyesSynchronous execution (waiting for Shell execution results)ye ...
Added by Dilbert137 on Mon, 08 Nov 2021 06:24:53 +0200