Reading notes of Dahua data structure -- the fifth chapter series

Article directory 5.2 definition of string 5.3 comparison of strings 5.4 abstract data types of strings 5.5 storage structure of string 5.5.1 sequential storage structure of strings 5.5.2 chain storage structure of string 5.6 simple pattern matching algorithm 5.7 KMP pattern matching algorithm 5.7 ...

Posted by delboy1978uk on Wed, 05 Feb 2020 23:53:11 -0800

Python common built-in functions

Built in function table abs() all() any() ascii() bin() bool() bytes() callable() compile() complex() chr() delattr() dir() divmod() enumerate() eval() exec() exit() filter() float() frozenset() getattr() globals() hasattr() hash() help() hex() id() input() int() isinstance() iter() le ...

Posted by 448191 on Tue, 21 Jan 2020 09:19:14 -0800

Methods of reading and writing text files and binary files in C/C + +

First of all, remember that the free function is only used to read binary files, and fscanf can read text or binary files. Fwrite / free will write / read files in binary form, such as int type in the example, and will be saved in numerical form. If you use Notepad and other programs to open, you will s ...

Posted by s1yman on Sun, 19 Jan 2020 03:03:16 -0800

Machine Learning Andrew Ng -5. Octave Tutrial (Matlab)

5.1 Basic operations 5.2 Moving data around 5.3 Computing on data 5.4 Plotting data 5.5 For while if statement and functions 5.6 Vectorization After reading the first two lessons, I think matlab seems to be the same as octave, so I plan to use matlab to learn the fifth lesson basic operation ?? ...

Posted by ponsho on Sat, 18 Jan 2020 10:07:55 -0800

Remove specific characters from strings in Python

I'm trying to use Python to remove specific characters from a string. This is the code I'm using right now. Unfortunately, it doesn't seem to have any effect on strings. for char in line: if char in " ?.!/;:": line.replace(char,'') How do I do this correctly? #1 building For the opposite requirement that only certain cha ...

Posted by SeanStar on Fri, 17 Jan 2020 07:25:44 -0800

STM32 idle interrupt - USART? It? Idle (without DMA mode)

Article directory Introduction to serial port interruption Introduction of serial port Serial communication process Introduction to idle interrupt Code case list Serial port configuration Interrupt reception Callback function data processing Introduction to serial port interruption Introduc ...

Posted by manwhoeatsrats on Thu, 16 Jan 2020 08:03:20 -0800

Logstash and filebeat configuration

    The mutate plug-in can modify the data in the event, including rename, update, replace, convert, split, gsub, uppercase, lowercase, strip, remove field, join, merge and other functions. 1,rename For a field that already exists, rename its field name.   filter { mutate { rename = ...

Posted by fiorefrank on Thu, 16 Jan 2020 03:45:15 -0800

Knight program DAY02

01 while loop while infinite loop while True: # Dead cycle print('Incantations of the Great Mercy') print('Two tigers') print('Great prince') print('Pick me up please,you skilled driver!') while Structure of the cycle: ''' while condition: //Circulatory body ''' # How to termin ...

Posted by iamtheironman on Thu, 16 Jan 2020 03:38:19 -0800

How do you get strings from MemoryStream?

If you give me one, I know I've filled one String Of MemoryStream , how can I retrieve a String? #1 building Previous solutions didn't work when it came to coding. It's - a "real life" - like how to do it right using(var stream = new System.IO.MemoryStream()) { var serializer = new D ...

Posted by the DtTvB on Wed, 15 Jan 2020 23:16:09 -0800

The solution of reading the first line of text in UTF-8 format and the first character is empty

Record the problems encountered during the completion of the project. When java reads UTF-8 format file, it finds a very depressing problem: when the UTF-8 format file edited by ue is read, it will read an invisible character from the first line of the file. The test code is as follows: package test; i ...

Posted by mayanktalwar1988 on Wed, 15 Jan 2020 00:14:46 -0800