Tag:Character string

  • C# IO.Path

    Time:2020-11-30

    Path class 1. The path class is a static class 2. The path class does not actually change the file, it only operates on strings. Member function explain example Path.ChangeExtension() Change string path suffix Path.Combine() Path splicing (save the pain of string + + +) Path.GetDirectoryName() Path.GetExtension() Return suffix Path.GetFileName() Returns the file name + […]

  • The interactive tool library of nodejs — chalk pipe and chalk

    Time:2020-11-30

    Nodejs interactive tool library series library effect chalk-pipe Create a chalk style scheme using simpler style strings chalk Handle terminal string style correctly Commander.js complete node.js Command line solution Inquirer.js A common set of interactive command-line user interfaces. slash System path character processing minimist Parse parameter options dotenv Load environment variables from. Env file into […]

  • Character type of MySQL

    Time:2020-11-29

    Character type of MySQL Character type MySQLThere are several types of character storage available, but in most cases we only usecharandvarcharThat’s fine. type size purpose CHAR 0 – 255 bytes Fixed length string VARCHAR 0 – 65535 bytes Variable length string TINYBLOB 0 – 255 bytes A binary string of 255 characters or less TINYTEXT […]

  • The use of JSON in Python

    Time:2020-11-28

    Introduction to JSON JSON (JavaScript object notation) is a lightweight data exchange format. Easy to read and write. It is also easy to machine parse and generate. It is based on JavaScript programming language, a subset of standard ecma-262 3rd Edition – December 1999. JSON uses a completely language independent text format, but also uses […]

  • JS regular expression syntax

    Time:2020-11-28

    regular expression syntax Regular expression is a text pattern composed of ordinary characters (such as numbers, letters, punctuation and metacharacters used to represent a specific character or character set) and special characters (characters used as qualifications or special functions). Common characters All numbers, lowercase letters, uppercase letters, punctuation are common characters. Metacharacters are required to […]

  • Why use interpolated strings instead string.format

    Time:2020-11-28

    If you know why you want to use an interpolated string, only those who have stepped on the pit can understand it. If you have ever used it string.format There are more than 5 placeholders. I think you can resonate with the pain. 1: Painful experience First of all, we have written a piece of […]

  • Time processing in JavaScript

    Time:2020-11-27

    This article introduces the date object built in JavaScript in detail. 1. Introduction JavaScript provides built-in objectsDateFor processing time, it is based onUnix Time Stamp(UNIX time stamp), that is, the number of milliseconds passed from 0:00:00 (UTC) on January 1, 1970 to this momentUnix Zero Time)。 Date.now() // 1593002422045 Returns the timestamp from UNIX zero […]

  • Android | Tangram dynamic page Road (7) virtual view of hard core

    Time:2020-11-27

    What is itVirtualviewIn short, throughxmlTo describe the view, and then compress it into binary format. The client can parse and render it into native view or submit it to canvas to draw. Series articles: Demand background Introduction to Tangram and vlayout Use of Tangram Vlayout principle Tangram principle JSON template and data separation GitHub address: […]

  • Awk of three swordsmen in shell text processing

    Time:2020-11-26

    Awk is a text processing tool, which is usually used to process data and generate result reports. Its name comes from the initials of the three founders: Alfred aho, Peter Weinberger and Brian Kernighan. Grammar: awk [options] ‘BEGIN{} pattern {commands} END{}’ file stdout | awk [options] ‘BEGIN{} pattern {commands} END{}’ explain: optionsoption BEGIN{}Before formal data […]

  • Leetcode 415. String addition | Python

    Time:2020-11-26

    415. String addition Source: leetcode https://leetcode-cn.com/problems/add-strings subject Given two non negative string integers num1 and num2, calculate the sum of them. be careful: The length of num1 and num2 is less than 5100 Num1 and num2 contain only numbers 0-9 Neither num1 nor num2 contains any leading zeros. You can’t use any of the built-in […]

  • The use of vuex mapstate, mapgetters, mapactions, mapmutations, from introduction to mastery

    Time:2020-11-26

    The storage management mode of Vue has puzzled me for a long time. I haven’t made up my mind to study hard. I have been storing information in Vue project group localStorage.setItem (key, value); // store information localStorage.getItem (key); // get information When you want to store information as an object, you must first convert […]

  • Summary of JavaScript regular expression

    Time:2020-11-25

    This paper summarizes the content of JavaScript regular expressions. Table form, clear at a glance. With the help of example graphic explanation. 1、 Metacharacter 2、 Antonym character 3、 Escape character 4、 Repeated matching 5、 Group / capture 6、 Greed and inertia 7、 Modifier example Matches phone numbers that start with 11n, 12n or 1nnn, followed […]