PHP string operation (string replacement, deletion, truncation, copy, connection, comparison, search, including, case conversion, cutting to array, etc.)

1, String substitution str_replace("iwind", "kiki", "i love iwind, iwind said"); //Will output "i love kiki, kiki said" str_replace(find,replace,string,count) parameter description Find required. Specifies the value to find.   Replace required. Specifies the value to replace the value in find.   String required. Specifies t ...

Posted by lazy_yogi on Sat, 11 Apr 2020 11:46:08 +0200

[learning notes] configuration files, yaml syntax, configuration injection and loose binding of SpringBoot

configuration file There are two configuration file formats for SpringBoot. You can choose one of them. yaml is officially recommended: Format of application.properties key=value application.yaml key: value format Profile location SpringBoot loads the main configuration file from all four locations; complementary configuration. Priority is fr ...

Posted by Jackanape on Fri, 20 Mar 2020 16:09:56 +0100

Assembly: Branch programming

Branch programming (1) Simple branch program: two branches are obtained by judging a condition, and the judgment result of the condition determines the execution direction of the program. The disadvantage lies in the limitation of execution flow direction, for example, when the condition is a multi se ...

Posted by Chalks on Mon, 16 Mar 2020 12:56:54 +0100

Linux programming to realize DS18B20 to detect the temperature of raspberry pie

Catalog (1) Project introduction (two) code and debugging (3) Summary (1) Project introduction DS18B20 is a commonly used digital temperature sensor. Its output is a digital signal, which has the characteristics of small size, low hardware cost, strong anti-interference ability and high precision. T ...

Posted by ramblix on Tue, 03 Mar 2020 11:04:52 +0100

C + + learning notes - file operation

The data generated by C + + when the program is running belongs to temporary data, which will be released after the program is running. Sometimes we need to store some simple data permanently. At this time, we can use files to persist the data. There are two types of files: 1. Text file: the file i ...

Posted by jtapoling on Fri, 28 Feb 2020 05:31:32 +0100

3. Querying, adding, deleting and modifying

Article directory First, query 1. Basic query (1) Basic usage (2) Filter data WHERE (3) Sort ORDER BY (4) Character matching query LIKE (5) Query result does not repeat DISTINCT (6) GROUP BY (7) LIMIT query results LIMIT 2. Querying with collection functions (1) COUNT() the total number of rows i ...

Posted by lkq on Fri, 21 Feb 2020 14:23:26 +0100

On some operation functions of list

this is a note l0 = 'acoilia.kinlrmi.3000.clevorihno' l1 = l0.split('.') #List is variable type print(l1) #li it's a list now def return_function(): #these functions return values a = l1[0] #list1 = [index of the element] #b = len(l1) #shows how m ...

Posted by rogair on Thu, 13 Feb 2020 10:36:22 +0100

HDOJ ten day brush question c++

HDOJ10 day question sequence Four or five roads a day (1.1 represents the first road on the first day), from easy to difficult Let's share my results. They are all AC. please give me your opinion~ Article directory 1.1.HDOJ 1000 1.2.HDOJ 1089 1.3.HDOJ1096 1.4.HDOJ1001 1.5.HDOJ 2000 2.1 HDOJ 2001 2.2 ...

Posted by kevinkorb on Wed, 12 Feb 2020 08:47:19 +0100

Python Learning Notes Day 1

Python Learning Notes Day 1 Writing of hello world Hello world in other languages C++ C JAVA php ruby go variable Naming variables ASCII Code Binary character User Interaction Mode Notes User typing (keyboard entry) Formatted output and connector: Form One Form Two Form Three if elif else w ...

Posted by djopie on Mon, 10 Feb 2020 03:22:46 +0100

Java BM string matching algorithm

BM matching algorithm follows one condition and two rules: 1. Conditions: The pattern string matches the main string from the end of the string, that is, from the back to the front Two, rules: 1. Bad character rule: in the process of pattern string and main string matching in turn, if there are unmatched characters in the main string, this ...

Posted by pfdesigns on Sat, 08 Feb 2020 18:13:24 +0100