Tag:string

  • Conversion between string and int types in golang

    Time:2022-4-21

    This paper summarizes the conversion methods between strings and various int types in golang: Convert string to int: int, err := strconv.Atoi(string) Convert string to Int64: int64, err := strconv.ParseInt(string, 10, 64) Int to string: string := strconv.Itoa(int) Int64 to string: string := strconv.FormatInt(int64,10) String to float32 / float64 float32, err = ParseFloat(string, 32) float64,err […]

  • Python list processing

    Time:2022-4-1

    Establishment date: April 13, 2020 Update Date: April 16, 2020 Note: please quote or change this article at will. Just indicate the source and author. The author does not guarantee that the content is absolutely correct. Please be responsible for any consequences Python list processing This article mainly focuses on some unusual list processing. As […]

  • Introduction to pysimplegui

    Time:2022-3-22

    Note: please quote or change this article at will. Just indicate the source and author. The author does not guarantee that the content is absolutely correct. Please be responsible for any consequences Introduction to pysimplegui Creating a graphical user interface (GUI) can be difficult, and there are many different Python GUI toolkits to choose from. […]

  • Redis – super detailed explanation of five data types

    Time:2022-3-11

    📢📢📢📣📣📣 Hello! hello everyone, I am【One heart classmate】, a highly motivated【Java domain blogger]!😜😜😜 ✨【One heart classmate】YesWriting style: I like it【Easy to understand】To explain every point of knowledge, but don’t like to use it【high-end, sophisticated and classy】Official statement. ✨【One heart classmate】BlogfieldYes【Back end oriented technology】Learning, the future will continue to update more【back-end technology 】And【Learning experience】。 ✨ If […]

  • Detailed explanation of C + + string operation corresponding to C string function

    Time:2022-3-4

    String is a standard class in STL. I’m used to using pointer to operate char * string of C. at first, it’s not very suitable. The main reason is for string The function in h did not find a suitable C + + replacement method, so for the commonly used sring The description of function […]

  • C # string usage of common functions

    Time:2022-3-4

    catalogue Remove Substring Replace Spilt Join Append Remove Remove (int StartIndex) removes all characters in this string from the specified position to the last position. Remove (int StartIndex, int length) removes the specified number of characters from the specified location in this instance. Remove will check the area. For the first form, when StartIndex is […]

  • String Library in Lua and powerful pattern matching learning notes

    Time:2022-3-2

    The processing ability of lua native interpreter to string is very limited. The powerful string operation ability comes from the string library. Lua’s string function is exported in string module. In lua5 1. At the same time, it is also a member method of string type. Therefore, we can write it as string Upper (s), […]

  • Share a useful Python Library – Levenshtein every day

    Time:2022-2-24

    Series articles: Share a python library every day – chardet Share a useful Python library every day – colorama Share a useful Python library every day – prettytable Share a useful Python library difflib every day Share a useful Python Library – Levenshtein every day Share a useful Python library every day – esmre Share […]

  • String and [] byte conversion of golang

    Time:2021-12-2

    Compared with C language, golang is a type safe language. But the price of security is the compromise of performance. Let’s take a look at the “secret” that golang doesn’t want us to see — the underlying data of string. Through the reflect package, we can know that at the bottom of golang, string and […]

  • The acquisition of URL address value, front-end cross domain request and transmitted data are XML processing methods

    Time:2021-10-28

    Recently, I was working on a project that requires token verification, cross domain requests, and I don’t want to change the background code, so the front end made a request. Fortunately, it’s easy to handle by nginx agent. Just add three commands under the HTTP node. The commands are as follows: add_header Access-Control-Allow-Origin *; add_header […]

  • Sed command in shell

    Time:2021-7-23

    grammar Sed [- hnv] [- e < script >] [- f < script file >] [text file] Parameter Description: -e<script>or–expression=<script>The input text file is processed with the script specified in the options. -F < script file >or–File = < script file >The input text file is processed with the script file specified in the options. […]

  • Detailed explanation of insert() function in C + + string

    Time:2021-6-14

    The following code to introduce C++   String insert() function, the details are as follows: basic_string& insert (size_type pos, const basic_string& str); Insert the string STR before the character marked POS in the original string basic_string& insert (size_type pos, const basic_string& str, size_type pos1, size_type n); The n characters of STR starting from the subscript […]